@Test
public void testConnectedSurveyJsonIsTranslatedToConnectedSurvey() throws Exception {

    String json = "{\"active-station\":\"1\",\"connections\":{\"1\":[[\"connected\",\"1\"]]}}";
    Survey survey = new Survey("test");
    Survey connected = new Survey("connected");
    PowerMockito.mockStatic(Loader.class);
    Mockito.when(
            Loader.loadSurvey((Context)anyObject(), anyString(), anySet(), anyBoolean()))
            .thenReturn(connected);
    MetadataTranslater.translateAndUpdate(null, survey, json);
    Assert.assertEquals(1, survey.getConnectedSurveys().size());
}