@Test
public void getPotentialDuplicate()
    throws WebMessageException
{

    Mockito.when( deduplicationService.getPotentialDuplicateByUid( Mockito.eq( "1" ) ) )
        .thenReturn( new PotentialDuplicate( "teiA" ) );
    PotentialDuplicate pd = controller.getPotentialDuplicate( "1" );
    assertEquals( "teiA", pd.getTeiA() );
}