### Question:
ScanLocation { @Override public String toString() { return "ScanLocation [scanDirectory=" + scanDirectory + ", scanFiles=" + scanFiles + "]"; } ScanLocation(final File scanDirectory);  ScanLocation(final List<File> scanFiles); final File getScanDirectory(); final List<File> getScanFiles(); @Override String toString(); String toLogString();  }### Answer:
@Test public void testToStringDirectory() throws Exception { final ScanLocation scanLocation = new ScanLocation(new File(".")); final String result = scanLocation.toString(); Assert.assertNotNull("toString()", result); }
@Test public void testToStringFileListEmpty() throws Exception { final ScanLocation scanLocation = new ScanLocation(new ArrayList<>()); final String result = scanLocation.toString(); Assert.assertNotNull("toString()", result); }