@Test
public void testShouldThrowExceptionWhenVersionIsNulInSyncParams()
    throws DhisVersionMismatchException
{

    MetadataSyncParams syncParams = new MetadataSyncParams();
    syncParams.setVersion( null );
    expectedException.expect( MetadataSyncServiceException.class );
    expectedException
        .expectMessage( "MetadataVersion for the Sync cant be null. The ClassListMap could not be constructed." );
    metadataSyncService.doMetadataSync( syncParams );
}