};
ServiceReference sref = EasyMock.createNiceMock(ServiceReference.class);
EasyMock.replay(sref);
Runnable myService = EasyMock.createMock(Runnable.class);
EasyMock.replay(myService);
<BUG>ExportResult result = handler.createServer(sref, null, null, properties, Runnable.class, myService);
assertNull(result.getException());

Map<String, Object> props = result.getEndpointProps();</BUG>
assertEquals(expectedAddress, props.get("org.apache.cxf.ws.address"));

};
ServiceReference sref = EasyMock.createNiceMock(ServiceReference.class);
EasyMock.replay(sref);
Runnable myService = EasyMock.createMock(Runnable.class);
EasyMock.replay(myService);
ExportResult result = handler.createServer(sref, null, null, properties, Runnable.class, myService);
if (result.getException() != null) {
throw result.getException();
}
Map<String, Object> props = result.getEndpointProps();
assertEquals(expectedAddress, props.get("org.apache.cxf.ws.address"));
