### Question:
ExampleDataloader implements TGDatasetInterface { @Override public String getType(File file) throws FileNotFoundException { String loadedString; Scanner sc = new Scanner(file); try { 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")) { return "spec"; } else { return "error"; } } catch (Exception e) { return "error"; } }  @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 testGetType() throws Exception { System.out.println("getType"); ExampleDataloader instance = new ExampleDataloader(); String expResult = "spec"; String result = instance.getType(testFile); assertEquals(expResult, result); }