public void testHeader() throws Exception {
SOAPEnvelope env = new org.apache.axis.message.SOAPEnvelope();
SOAPHeader h1 = env.getHeader();
assertTrue("null initial header", h1 != null);
h1.detachNode();
assertTrue("header not freed", env.getHeader() == null);
SOAPHeader h2 = env.addHeader();
assertTrue("null created header", h2 != null);
assertEquals("wrong header retrieved", h2, env.getHeader());
assertEquals("header parent incorrect", env, h2.getParentElement());