}
public void testInvalidConstruction() {
Mock mockEndpoint = new Mock(MessageEndpoint.class);
try {
MessageEndpointProxy proxy = new MessageEndpointProxy((MessageEndpoint) mockEndpoint.proxy());
fail("An exception should have been thrown");
} catch (IllegalArgumentException e) {
assertTrue(true);
}
}