### Question:
ExampleDataloader implements TGDatasetInterface { @Override public boolean Validator(File file) throws FileNotFoundException, IOException, IllegalAccessException, InstantiationException { String ext = getFileExtension(file); if (ext.equalsIgnoreCase(getExtention())) { String loadedString; Scanner sc = new Scanner(file); if (sc.hasNextLine()) { sc.nextLine(); sc.nextLine(); loadedString = sc.nextLine(); if (loadedString.contains("\t")) { loadedString = loadedString.trim().replaceAll("\t", " "); } if (loadedString.trim().equalsIgnoreCase("Time explicit") | loadedString.trim().equalsIgnoreCase("Wavelength explicit") | loadedString.trim().equalsIgnoreCase("FLIM image")) { loadedString = sc.nextLine(); if (loadedString.trim().contains("NumberOfRecordsPerDatapoint")) { return true; } else { return false; } } else { return false; } } else { return false; } } else { return false; } }  @Override String getExtention(); @Override String getFilterString(); @Override String getType(File file); @Override boolean Validator(File file); @Override DatasetTimp loadFile(File file); @Override FlimImageAbstract loadFlimFile(File file);  }### Answer:
@Test public void testValidator() throws Exception { System.out.println("Validator"); ExampleDataloader instance = new ExampleDataloader(); boolean expResult = true; boolean result = instance.Validator(testFile); assertEquals(expResult, result); }