public void testBody() throws Exception {
SOAPEnvelope env = new org.apache.axis.message.SOAPEnvelope();
SOAPBody b1 = env.getBody();
assertTrue("null initial body", b1 != null);
b1.detachNode();
assertTrue("body not freed", env.getBody() == null);
SOAPBody b2 = env.addBody();
assertTrue("null created body", b2 != null);
assertEquals("wrong body retrieved", b2, env.getBody());
assertEquals("body parent incorrect", env,