@Test(expected = IOException.class)
public void test_validateDirectory_ExistsAndIsNotADirectory() throws IOException {

    File fileThatExists = File.createTempFile(getClass().getSimpleName(), "test");
    try {
        MongoSchemaFileStore.validateDirectory(fileThatExists);
    } finally {
       fileThatExists.delete();
    }
}