@Test
public void testExtraSubClassWithJaxbFromEndpoint() throws Throwable {
Widget expected = new ExtendedWidget(42, "blah", "blah", true, true);
TestService testClient = getTestClient();
((BindingProvider)testClient).getRequestContext()
.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://localhost:" + PORT + "/service/TestEndpoint");
Widget widgetFromService = testClient.getWidgetById((long)42);
Assert.assertEquals(expected, widgetFromService);
}