if (!config.isReadOnly()) {
setUp();
String filename = "a file to test.text";
FSDirectory rootDir = getFs().getRootEntry().getDirectory();
FSEntry entry = rootDir.addFile(filename);
FSEntry gotEntry = rootDir.getEntry(filename);
assertNotNull("must contain the added file", gotEntry);
assertEquals("returned bad entry", filename, gotEntry.getName());
log.debug("entry before remount=" + FSUtils.toString(entry, true));