assertEquals(5, n);
}
@Test
public void testParseTransactionResponse() throws IOException, SAXException, ParserConfigurationException{
Parser parser = new Parser(configuration);
Object parsed = parser.parse(getClass().getResourceAsStream("transactionResponse.xml"));
assertNotNull(parsed);
assertTrue(parsed.getClass().getName(), parsed instanceof TransactionResponseType);
TransactionResponseType response = (TransactionResponseType) parsed;
InsertResultsType insert = response.getInsertResults();
assertEquals(0, insert.getFeature().size());
parsed = parser.parse(getClass().getResourceAsStream("transactionResponse2.xml"));
assertNotNull(parsed);
assertTrue(parsed.getClass().getName(), parsed instanceof TransactionResponseType);
response = (TransactionResponseType) parsed;