@Test
public void testConnectedSurveyIsTranslatedToJson() throws Exception {

    Survey survey = new Survey("first");
    Survey connectedSurvey = new Survey("connected");
    connectTwoSurveys(survey, survey.getOrigin(), connectedSurvey, connectedSurvey.getOrigin());
    String translated = MetadataTranslater.translate(survey);
    Assert.assertEquals(
            "{\"active-station\":\"1\",\"connections\":{\"1\":[[\"connected\",\"1\"]]}}",
            translated);
}