### Question:
ImageLibObject { public static boolean isValidInputImageFileEnding(String name) { return SUPPORT_INPUT_FILE_ENDINGS.stream().anyMatch(name::endsWith); } ImageLibObject(Path imageFile); static boolean isValidInputImageFileEnding(String name); void setMinSimilarity(double similarityScore); Path getImageFile(); String getId(); Pattern getPattern(); @Override String toString(); static final List<String> SUPPORT_INPUT_FILE_ENDINGS; }### Answer:
@Test public void testIsValidInputImage() throws Exception { assertTrue(ImageLibObject.isValidInputImageFileEnding("dalfa.dfadfkjaifww.png")); assertTrue(ImageLibObject.isValidInputImageFileEnding("dalfa.png.eidk.PNG")); assertTrue(ImageLibObject.isValidInputImageFileEnding("dalfa.png.eidk.jpg")); assertTrue(ImageLibObject.isValidInputImageFileEnding("dalfa.jpg.eidk.JPG")); assertFalse(ImageLibObject.isValidInputImageFileEnding("otherbladl.ds")); }