### Question:
ParseStreamManagement { public static AckAnswer ackAnswer(XmlPullParser parser) throws XmlPullParserException, IOException { ParserUtils.assertAtStartTag(parser); long h = ParserUtils.getLongAttribute(parser, "h"); parser.next(); ParserUtils.assertAtEndTag(parser); return new AckAnswer(h); }  static Enabled enabled(XmlPullParser parser); static Failed failed(XmlPullParser parser); static Resumed resumed(XmlPullParser parser); static AckAnswer ackAnswer(XmlPullParser parser); static AckRequest ackRequest(XmlPullParser parser);  }### Answer:
@Test public void testParseAckAnswer() throws Exception { long handledPackets = 42 + 42; String ackStanza = XMLBuilder.create("a") .a("xmlns", "urn:xmpp:sm:3") .a("h", String.valueOf(handledPackets)) .asString(outputProperties); StreamManagement.AckAnswer acknowledgementPacket = ParseStreamManagement.ackAnswer( PacketParserUtils.getParserFor(ackStanza)); assertNotNull(acknowledgementPacket); assertEquals(handledPackets, acknowledgementPacket.getHandledCount()); }