PKBeacon implements Cloneable, Serializable { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } protected  PKBeacon(); Integer getMajor(); Integer getMinor(); String getProximityUUID(); String getRelevantText(); @Override String toString(); static PKBeaconBuilder builder(); static PKBeaconBuilder builder(PKBeacon beacon);  }
@Test public void test_toString() { PKBeacon beacon = builder.build(); assertThat(beacon.toString()) .contains(String.valueOf(MAJOR)) .contains(String.valueOf(MINOR)) .contains(UUID) .contains(TEXT); }