@Test
public void testFileNameExtraction() {

	try {
		assertNotNull(MimeTypes.getMimeTypeForFileName("test.txt"));
		assertNotNull(MimeTypes.getMimeTypeForFileName("t.txt"));
		assertNotNull(MimeTypes.getMimeTypeForFileName("first.second.third.txt"));
		
		assertNull(MimeTypes.getMimeTypeForFileName(".txt"));
		assertNull(MimeTypes.getMimeTypeForFileName("txt"));
		assertNull(MimeTypes.getMimeTypeForFileName("test."));
	}
	catch (Exception e) {
		e.printStackTrace();
		fail(e.getMessage());
	}
}