@Test
public void testAddressToStringOverride() throws Exception {
TpAddress foo = new org.apache.cxf.configuration.foo.ObjectFactory().createTpAddress();
Method method = foo.getClass().getMethod("toString");
assertEquals("toString is overridden", foo.getClass(),
method.getDeclaringClass());
TpAddressPresentation value = TpAddressPresentation.P_ADDRESS_PRESENTATION_ALLOWED;
foo.setPresentation(value);
String fooS = foo.toString();
assertTrue("contains null", fooS.indexOf("null") != -1);
assertTrue("contains P_ADDRESS_PRESENTATION_ALLOWED",
fooS.indexOf("P_ADDRESS_PRESENTATION_ALLOWED") != -1);