PKLocation implements Cloneable, Serializable { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } protected  PKLocation(); double getLatitude(); double getLongitude(); Double getAltitude(); String getRelevantText(); @Override String toString(); static PKLocationBuilder builder(); static PKLocationBuilder builder(PKLocation location);  }
@Test public void test_toString() { PKLocation location = builder.build(); assertThat(location.toString()) .contains(String.valueOf(LONGITUDE)) .contains(String.valueOf(ALTITUDE)) .contains(String.valueOf(LONGITUDE)) .contains(RELEVANT_TEXT); }