@Test
public void test_validateDirectory_DoesNotExistAndNeedsCreation() throws IOException {

    File needsToBeCreated = createUniqueTempDirectory();
    try {
        assertThat(needsToBeCreated.exists(), is(equalTo(false)));
        MongoSchemaFileStore.validateDirectory(needsToBeCreated);
        assertThat(needsToBeCreated.isDirectory(), is(equalTo(true)));
        assertThat(needsToBeCreated.exists(), is(equalTo(true)));
    } finally {
       needsToBeCreated.delete();
    }
}