source: class ZipDataCheckerTest {
  
    private static final Logger LOGGER;
     ZipDataChecker checker;
     File directory;
     File dataInput1;
     File dataInput2;
     File dataInput3;
     File dataOutput1;
     File dataOutput2;
     File dataOutput3;
     File spjFile;
     File otherFile;
     File otherDirectory;
  
    @Test
    public void testCheck_withInvalidDataName() {
  
target:     when(directory.listFiles()).thenReturn(
          new File[]{dataInput1, dataOutput1, spjFile, otherFile});
      try {
        checker.check(directory);
        Assert.fail();
      } catch (AppException e) {
        Assert.assertEquals(new AppException("Problem information directory contains unknown file type."), e);
      }
    }
  
  }