@Test
public void testParseImageCollectionResponse() {

	StorageCollection results;
    OpenStackParser parser = new OpenStackParser();
    try {
        results =
            parser.parseImageCollectionResponse(IMAGECOLLECTIONRESPONSE);
        
        assertEquals(2, results.getStorage().size());
        assertEquals("1bea47ed-f6a9-463b-b423-14b9cca9ad27", 
                results.getStorage().get(0).getHref());
        assertEquals("781b3762-9469-4cec-b58d-3349e5de4e9c", 
                results.getStorage().get(1).getHref());
        assertEquals("cirros-0.3.2-x86_64-disk", 
                results.getStorage().get(0).getName());
        assertEquals("F17-x86_64-cfntools", 
                results.getStorage().get(1).getName());
        
        results =
            parser.parseImageCollectionResponse(
            		IMAGECOLLECTIONMALFORMEDRESPONSE);
        fail();
    } catch (OCCIException e) {
        assertTrue(true);
    }
}