translatesToAppropriateJsonRepresentationWithComplexTarget() {
final LandscapeObservation observation = new LandscapeObservation(TargetDetailGroup.of(newArrayList(
new TargetDetail("T1ID", "T1URL", "T1", Status.GREEN, 123,
newArrayList(new RunningBuild(percentageOf(1), Status.GREEN),
new RunningBuild(percentageOf(60), Status.BROKEN)),
newHashSet(new Sponsor("S1", "P1"))))));
assertThat(new JsonTranslator().toJson(observation), is("{\"targets\":[" +
"{\"lastStartTime\":123," +
"\"sponsors\":[{\"name\":\"S1\",\"picture\":\"P1\"}]," +
"\"builds\":[" +