PKNFC implements Cloneable, Serializable { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } protected  PKNFC(); String getMessage(); String getEncryptionPublicKey(); Boolean getRequiresAuthentication(); @Override String toString(); static PKNFCBuilder builder(); static PKNFCBuilder builder(PKNFC nfc);  }
@Test public void test_toString() { PKNFC nfc = builder.build(); assertThat(nfc.toString()) .contains(MESSAGE) .contains(ENCRYPTION_PUBLIC_KEY) .contains(REQUIRES_AUTHENTICATION.toString()); }