### Question:
ArchiveIdentifierPattern extends ArchiveIdentifier { @Override public String toString() { return "ArchiveIdentifierPattern [archiveType=" + getArchiveType() + ", nameMatchingType=" + getNameMatchingType() + ", name=" + getName() + ", patternType=" + patternType + ", pattern=" + pattern + "]"; } ArchiveIdentifierPattern(final ArchiveType archiveType, final PatternType patternType, final String regex); final PatternType getPatternType(); final Pattern getPattern(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testToString() { final ArchiveIdentifierPattern ai = new ArchiveIdentifierPattern(ArchiveType.JAVA, PatternType.PATTERN_ON_FILENAME, "abc"); Assert.assertNotNull("toString()", ai.toString()); }