### Question:
FileCarImage extends AbstractCarImage { @SuppressWarnings("unused") private FileCarImage() { } @SuppressWarnings("unused") private  FileCarImage();  FileCarImage(Path filepath); void loadImage(); void loadImage(InputStream inStream); void loadFragment(Rectangle rect); void loadFragment(InputStream inStream, Rectangle rect); @Override void close(); @Override @Transient BufferedImage getImage(); @Transient Path getFilepath(); void setFilepath(Path filepath); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testFileCarImage() throws IOException { Path tmpFile = null; try { tmpFile = Files.createTempFile("imageFile", ".carcv.jpg"); } catch (IOException e) { fail("Failed to create temp file"); e.printStackTrace(); } assertNotNull(tmpFile); FileCarImage iFile = new FileCarImage(tmpFile); assertNotNull(iFile); Exception ex = null; try { iFile.loadImage(); } catch (final Exception e) { ex = e; } assertNotNull(ex); assertNotNull(iFile); assertNull(iFile.getImage()); assertTrue(Files.deleteIfExists(tmpFile)); }