@Test
public void postPotentialDuplicateInvalidUid()
{

    try
    {
        controller.postPotentialDuplicate( new PotentialDuplicate( "invalid" ) );
    }
    catch ( WebMessageException e )
    {
        WebMessage wm = e.getWebMessage();
        assertEquals( "Conflict", wm.getHttpStatus() );
        assertEquals( 409, wm.getHttpStatusCode().intValue() );
        assertEquals( Status.ERROR, wm.getStatus() );
        assertEquals( "'invalid' is not valid value for property 'teiA'", wm.getMessage() );
    }
}