public class ArchiveGuesserTest {
@Test
public void matches() {
assertTrue(ArchiveGuesser.isArchive(new MockDocument("42.jar")));
assertTrue(ArchiveGuesser.isArchive(new MockDocument("42.tar.gz")));
assertTrue(ArchiveGuesser.isArchive(new MockDocument("42.zip")));
assertTrue(ArchiveGuesser.isArchive(new MockDocument("42.tar")));
assertTrue(ArchiveGuesser.isArchive(new MockDocument("42.bz")));
assertTrue(ArchiveGuesser.isArchive(new MockDocument("42.bz2")));
}