@Test
public void getRemoteInstanceTest()
{

    systemSettingManager.saveSystemSetting( SettingKey.REMOTE_INSTANCE_USERNAME, USERNAME );
    systemSettingManager.saveSystemSetting( SettingKey.REMOTE_INSTANCE_PASSWORD, PASSWORD );
    systemSettingManager.saveSystemSetting( SettingKey.REMOTE_INSTANCE_URL, URL );
    SystemInstance systemInstance = SyncUtils.getRemoteInstance( systemSettingManager, SyncEndpoint.EVENTS );
    assertThat( systemInstance.getUsername(), is( USERNAME ) );
    assertThat( systemInstance.getPassword(), is( PASSWORD ) );
    assertThat( systemInstance.getUrl(), is( EVENTS_URL ) );
}