@Test
public void testShouldThrowExceptionWhenServerNotAvailable()
{

    AvailabilityStatus availabilityStatus = new AvailabilityStatus( false, "test_message", null );
    when( synchronizationManager.isRemoteServerAvailable() ).thenReturn( availabilityStatus );
    expectedException.expect( RemoteServerUnavailableException.class );
    expectedException.expectMessage( "test_message" );
    target.getRemoteMetadataVersion( "testVersion" );
}