### Question:
HTTPServerAssertionBuilder extends JaxbAssertionBuilder<HTTPServerPolicy> { @Override protected JaxbAssertion<HTTPServerPolicy> buildAssertion() { return new HTTPServerPolicyAssertion(); } HTTPServerAssertionBuilder();  static final List<QName> KNOWN_ELEMENTS; }### Answer:
@Test public void testBuildAssertion() throws Exception { HTTPServerAssertionBuilder ab = new HTTPServerAssertionBuilder(); Assertion a = ab.buildAssertion(); assertTrue(a instanceof JaxbAssertion); assertTrue(a instanceof HTTPServerAssertionBuilder.HTTPServerPolicyAssertion); assertEquals(new ServerPolicyCalculator().getDataClassName(), a.getName()); assertFalse(a.isOptional()); }
@Test public void testHTTPServerPolicyAssertionEqual() throws Exception { HTTPServerAssertionBuilder ab = new HTTPServerAssertionBuilder(); JaxbAssertion<HTTPServerPolicy> a = ab.buildAssertion(); a.setData(new HTTPServerPolicy()); assertTrue(a.equal(a)); JaxbAssertion<HTTPServerPolicy> b = ab.buildAssertion(); b.setData(new HTTPServerPolicy()); assertTrue(a.equal(b)); HTTPServerPolicy pa = new HTTPServerPolicy(); a.setData(pa); assertTrue(a.equal(a)); HTTPServerPolicy pb = new HTTPServerPolicy(); b.setData(pb); assertTrue(a.equal(b)); pa.setSuppressClientSendErrors(true); assertFalse(a.equal(b)); }
@Test public void testBuildAssertion() throws Exception { HTTPServerAssertionBuilder ab = new HTTPServerAssertionBuilder(); Assertion a = ab.buildAssertion(); assertTrue(a instanceof JaxbAssertion); assertTrue(a instanceof HTTPServerAssertionBuilder.HTTPServerPolicyAssertion); assertEquals(new ServerPolicyCalculator().getDataClassName(), a.getName()); assertTrue(!a.isOptional()); }
@Test public void testHTTPServerPolicyAssertionEqual() throws Exception { HTTPServerAssertionBuilder ab = new HTTPServerAssertionBuilder(); JaxbAssertion<HTTPServerPolicy> a = ab.buildAssertion(); a.setData(new HTTPServerPolicy()); assertTrue(a.equal(a)); JaxbAssertion<HTTPServerPolicy> b = ab.buildAssertion(); b.setData(new HTTPServerPolicy()); assertTrue(a.equal(b)); HTTPServerPolicy pa = new HTTPServerPolicy(); a.setData(pa); assertTrue(a.equal(a)); HTTPServerPolicy pb = new HTTPServerPolicy(); b.setData(pb); assertTrue(a.equal(b)); pa.setSuppressClientSendErrors(true); assertTrue(!a.equal(b)); }