@Test
public void shouldThrowExceptionIfClassDoesNotExist() {

    producer.handlerClass = "uk.gov.justice.services.core.envelope.NonExisting";
    exception.expect(IllegalArgumentException.class);
    exception.expectMessage("Could not instantiate validation exception handler.");
    producer.envelopeValidationExceptionHandler();
}