public class BinaryGuesserTest {
@Test
public void testMatches() {
assertTrue(BinaryGuesser.isBinary(new MockDocument("image.png")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("image.pdf")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("image.gif")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("image.giff")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("image.tif")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("image.tiff")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("image.jpg")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("image.jpeg")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("image.exe")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("Whatever.class")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("data.dat")));
assertTrue(BinaryGuesser.isBinary(new MockDocument("libicudata.so.34.")));
}