@Test
public void testShouldVerifyImportParamsAtomicTypeForTheGivenBestEffortVersion()
    throws DhisVersionMismatchException
{

    MetadataSyncParams syncParams = new MetadataSyncParams();
    MetadataVersion metadataVersion = new MetadataVersion( "testVersion", VersionType.BEST_EFFORT );
    MetadataImportParams metadataImportParams = new MetadataImportParams();
    syncParams.setVersion( metadataVersion );
    syncParams.setImportParams( metadataImportParams );
    MetadataSyncSummary metadataSyncSummary = new MetadataSyncSummary();
    metadataSyncSummary.setMetadataVersion( metadataVersion );
    String expectedMetadataSnapshot = "{\"date\":\"2016-05-24T05:27:25.128+0000\"}";
    when( metadataVersionService.getVersionData( "testVersion" ) ).thenReturn( expectedMetadataSnapshot );
    metadataSyncService.doMetadataSync( syncParams );
    verify( metadataSyncImportHandler, times( 1 ) ).importMetadata(
        (argThat( metadataSyncParams -> syncParams.getImportParams().getAtomicMode().equals( AtomicMode.NONE ) )),
        eq( expectedMetadataSnapshot ) );
    verify( metadataVersionService, never() ).createMetadataVersionInDataStore( metadataVersion.getName(),
        expectedMetadataSnapshot );
    verify( metadataVersionDelegate, never() ).downloadMetadataVersionSnapshot( metadataVersion );
}