@Test
public void testParseSubnetCollectionResponse() {

    NetworkCollection results;
    OpenStackParser parser = new OpenStackParser();
    try {
        results =
            parser.parseSubnetCollectionResponse(SUBNETCOLLECTIONRESPONSE);
        
        assertEquals(2, results.getNetwork().size());
        assertEquals("08eae331-0402-425a-923c-34f7cfe39c1b", 
                results.getNetwork().get(0).getHref());
        assertEquals("54d6f61d-db07-451c-9ab3-b9609b6b6f0b", 
                results.getNetwork().get(1).getHref());
        assertEquals("private-subnet", 
                results.getNetwork().get(0).getName());
        assertEquals("my_subnet", 
                results.getNetwork().get(1).getName());
        
        results =
            parser.parseSubnetCollectionResponse(
                    SUBNETCOLLECTIONMALFORMEDRESPONSE);
        fail();
    } catch (OCCIException e) {
        assertTrue(true);
    }
}