import org.springmodules.lucene.index.document.handler.DocumentMatching;
public class MimeTypeDocumentMatchingTests extends TestCase {
public void testMatch() throws Exception {
DocumentMatching documentMatching1 = new MimeTypeDocumentMatching("text/plain");
assertTrue(documentMatching1.match("test.txt"));
DocumentMatching documentMatching2 = new MimeTypeDocumentMatching("text/plain");
assertTrue(documentMatching2.match("test.test.txt"));
}