@Test
public void testReadSyncSettingsFromJsonString() throws
                                                 Exception {

    // given a JSON settings
    final String json = TestHelper.getFixture("sync_settings.json");
    // when read the JSON as MapSettings
    final SyncSettings syncSettings = syncSettingsReader.readSyncSettings(json);
    // then
    assertNotNull(syncSettings);
    assertEquals("http://domain.com/sync/",
                 syncSettings.getServerUrl());
    assertEquals("my!token#",
                 syncSettings.getToken());
    assertEquals("status/",
                 syncSettings.getStatusUrl());
    assertEquals("import/",
                 syncSettings.getImportUrl());
    assertEquals(1,
                 syncSettings.getExports()
                             .size());
    assertEquals("export/sqlite/",
                 syncSettings.getExports()
                             .get(0)
                             .getUrl());
    assertEquals("databases/data.db",
                 syncSettings.getExports()
                             .get(0)
                             .getFile());
}