### Question:
LaunchTask { @Override public String toString() { return String.format("Offer: %s TaskInfo: %s", offerToString(offer), taskInfoToString(task)); } LaunchTask(final Protos.TaskInfo task, final Protos.Offer offer); Protos.TaskInfo getTask(); Protos.Offer getOffer(); @Override String toString();  }### Answer:
@Test public void objectToString() { assertEquals( "Offer: {\"offer_id\":\"id1\",\"hostname\":\"h1\"} TaskInfo: {\"task_id\":\"id2\",\"slave_id\":\"s1\",\"executor_id\":\"e1\"}", target.toString() ); }