MetacardFactory { @Override public String toString() { return String.format(TO_STRING_PATTERN, this.getClass().getName(), ID, MIME_TYPE); }  Metacard createMetacard(String id); void setMetacardType(MetacardType metacardType); @Override String toString(); static final MimeType MIME_TYPE; }
@Test public void testToString() { String metacardFactoryString = metacardFactory.toString(); assertThat(metacardFactoryString, is(notNullValue())); assertThat( metacardFactoryString, is( "InputTransformer {Impl=org.codice.alliance.transformer.nitf.MetacardFactory, id=ddf/catalog/transformer/nitf, mime-type=image/nitf}")); }