@Test public void testLoadSuccessful() { final DataLoader<T> loader = createDataLoader(); final T actualData = loader.load(getTestDataFileName()); assertTrue(verifyData(actualData)); }
@Test(expected = RuntimeException.class) public void testLoadFailsFileNotFound() { final DataLoader<T> loader = createDataLoader(); loader.load("non-existent-file"); }