void () { FileType perlType = myFileTypeManager.getFileTypeByFileName("foo.pl"); assertEquals("Perl", perlType.getName()); assertEquals(PlainTextFileType.INSTANCE, myFileTypeManager.getFileTypeByFileName("foo.txt")); doReassignTest(perlType, "txt"); }