### Question:
HTTPClientAssertionBuilder extends JaxbAssertionBuilder<HTTPClientPolicy> { @Override protected JaxbAssertion<HTTPClientPolicy> buildAssertion() { return new HTTPClientPolicyAssertion(); } HTTPClientAssertionBuilder();  static final List<QName> KNOWN_ELEMENTS; }### Answer:
@Test public void testBuildAssertion() throws Exception { HTTPClientAssertionBuilder ab = new HTTPClientAssertionBuilder(); Assertion a = ab.buildAssertion(); assertTrue(a instanceof JaxbAssertion); assertTrue(a instanceof HTTPClientAssertionBuilder.HTTPClientPolicyAssertion); assertEquals(new ClientPolicyCalculator().getDataClassName(), a.getName()); assertFalse(a.isOptional()); }
@Test public void testHTTPCLientPolicyAssertionEqual() throws Exception { HTTPClientAssertionBuilder ab = new HTTPClientAssertionBuilder(); JaxbAssertion<HTTPClientPolicy> a = ab.buildAssertion(); a.setData(new HTTPClientPolicy()); assertTrue(a.equal(a)); JaxbAssertion<HTTPClientPolicy> b = ab.buildAssertion(); b.setData(new HTTPClientPolicy()); assertTrue(a.equal(b)); HTTPClientPolicy pa = new HTTPClientPolicy(); a.setData(pa); assertTrue(a.equal(a)); HTTPClientPolicy pb = new HTTPClientPolicy(); b.setData(pb); assertTrue(a.equal(b)); pa.setDecoupledEndpoint("http: assertFalse(a.equal(b)); }
@Test public void testBuildAssertion() throws Exception { HTTPClientAssertionBuilder ab = new HTTPClientAssertionBuilder(); Assertion a = ab.buildAssertion(); assertTrue(a instanceof JaxbAssertion); assertTrue(a instanceof HTTPClientAssertionBuilder.HTTPClientPolicyAssertion); assertEquals(new ClientPolicyCalculator().getDataClassName(), a.getName()); assertTrue(!a.isOptional()); }
@Test public void testHTTPCLientPolicyAssertionEqual() throws Exception { HTTPClientAssertionBuilder ab = new HTTPClientAssertionBuilder(); JaxbAssertion<HTTPClientPolicy> a = ab.buildAssertion(); a.setData(new HTTPClientPolicy()); assertTrue(a.equal(a)); JaxbAssertion<HTTPClientPolicy> b = ab.buildAssertion(); b.setData(new HTTPClientPolicy()); assertTrue(a.equal(b)); HTTPClientPolicy pa = new HTTPClientPolicy(); a.setData(pa); assertTrue(a.equal(a)); HTTPClientPolicy pb = new HTTPClientPolicy(); b.setData(pb); assertTrue(a.equal(b)); pa.setDecoupledEndpoint("http: assertTrue(!a.equal(b)); }