@Test
public void testParseInstanceTypeCollectionResponse() {

	InstanceTypeCollection results;
    OpenStackParser parser = new OpenStackParser();
    try {
        results =
            parser.parseInstanceTypeCollectionResponse(
            		INSTANCETYPECOLLECTIONRESPONSE);
        
        assertEquals(5, results.getInstanceType().size());
        assertEquals("1", results.getInstanceType().get(0).getHref());
        assertEquals("m1.tiny", results.getInstanceType().get(0).getName());
        assertEquals("2", results.getInstanceType().get(1).getHref());
        assertEquals(
        		"m1.small", results.getInstanceType().get(1).getName());
        assertEquals("3", results.getInstanceType().get(2).getHref());
        assertEquals(
        		"m1.medium", results.getInstanceType().get(2).getName());
        assertEquals("4", results.getInstanceType().get(3).getHref());
        assertEquals(
        		"m1.large", results.getInstanceType().get(3).getName());
        assertEquals("5", results.getInstanceType().get(4).getHref());
        assertEquals(
        		"m1.xlarge", results.getInstanceType().get(4).getName());
        
        results =
            parser.parseInstanceTypeCollectionResponse(
            		INSTANCETYPECOLLECTIONMALFORMEDRESPONSE);
        fail();
    } catch (OCCIException e) {
        assertTrue(true);
    }
}