### Question:
ImageProcessing { public static Vector getAttributeVector(File imageFile, String processingChain) throws IOException { return getAttributeVector(ImageIO.read(imageFile), processingChain); } private  ImageProcessing(); private  ImageProcessing(BufferedImage imageFile, String processingChain); static Vector getAttributeVector(File imageFile, String processingChain); static Vector getAttributeVector(BufferedImage image, String processingChain);  }### Answer:
@Test public void testNew() throws Exception { final Vector blackDetector = ImageProcessing.getAttributeVector(new BufferedImage(500, 500, BufferedImage.TYPE_4BYTE_ABGR), "BlackDetector"); Assert.assertSame(5, 5); }
@Test public void testBad() throws Exception { exception.expect(RuntimeException.class); final Vector blackDetector = ImageProcessing.getAttributeVector(new BufferedImage(505, 500, BufferedImage.TYPE_4BYTE_ABGR), "BlackDetector"); Assert.fail(); }
@Test public void testAlgo() throws Exception { exception.expect(RuntimeException.class); final Vector blackDetector = ImageProcessing.getAttributeVector(new BufferedImage(500, 500, BufferedImage.TYPE_4BYTE_ABGR), "TruckDetector"); Assert.fail(); }