@Test
public final void testBuildFileListJsonShouldCreateProperJsonWhenDirectoryIncluded() {

    //GIVEN
    String expected = "{\"files\":[\"File1.class\",\"File2.class\",\"File3.class\"]}";
    Collection<File> filesInDirectory = new ArrayList<File>();
    filesInDirectory.add(new File("folder/File1.class"));
    filesInDirectory.add(new File("folder/File2.class"));
    filesInDirectory.add(new File("folder/File3.class"));
    given(fileUtilsWrapper.listFiles(directory)).willReturn(filesInDirectory);
    //WHEN
    String result = underTest.buildFileListJson(directory);
    //THEN
    assertEquals(result, expected);
}