@Test
public void shouldCreateDirectory() throws IOException {

    // given
    File file = File.createTempFile("glowroot-unit-test-", "");
    file.delete();
    // when
    ClassLoaders.createDirectoryOrCleanPreviousContentsWithPrefix(file, "abc");
    // then
    assertThat(file.isDirectory()).isTrue();
}