void (ElementPresentation presentation, String fqEnd, String name, String commentEnd) { fqEnd = fqEnd.replace('/', File.separatorChar); commentEnd = commentEnd.replace('/', File.separatorChar); String qualifiedName = presentation.getQualifiedName(); assertTrue(qualifiedName + ".endsWith(" + fqEnd + ")", qualifiedName.endsWith(fqEnd)); assertEquals(name, presentation.getName()); String comment = presentation.getComment(); assertTrue(comment + ".endsWith(" + commentEnd + ")", comment.endsWith(commentEnd)); }