assertThat(new JsonTranslator().toJson(group), is("{\"landscapes\":[]}"));
}
@Test public void
translatesToAppropriateJsonRepresentation() {
final LandscapeGroup group = new LandscapeGroup(newArrayList(new Landscape("L1", new Feature("F11", "E11", new CiServerType("T11")),
new Feature("F12", "E12", new CiServerType("T12"))),
new Landscape("L2", new Feature("F21", "E21", new CiServerType("T21")),
new Feature("F22", "E22", new CiServerType("T22")))));
assertThat(new JsonTranslator().toJson(group), is("{\"landscapes\":[" +
"{\"name\":\"L1\"}," +
"{\"name\":\"L2\"}" +