@Test
public void testProcessMessageException() throws Exception
{

    doThrow( new MessageException( "" ) ).when( messageProcessor ).processMessage( anyString() );
    Response response = restService.processMessage( "" );
    assertEquals( Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), response.getStatus() );
}