@Test
public void getPotentialDuplicateNotFound()
{

    Mockito.when( deduplicationService.getPotentialDuplicateByUid( Mockito.eq( "0" ) ) ).thenReturn( null );
    try
    {
        controller.getPotentialDuplicate( "0" );
    }
    catch ( WebMessageException e )
    {
        WebMessage wm = e.getWebMessage();
        assertEquals( "Not Found", wm.getHttpStatus() );
        assertEquals( 404, wm.getHttpStatusCode().intValue() );
        assertEquals( Status.ERROR, wm.getStatus() );
        assertEquals( "No potentialDuplicate records found with id '0'.", wm.getMessage() );
    }
}