@Test
public void testCheck_withInvalidDataName() {

  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);
  }
}