@Test
public void testToOpenStackComputeState() {

	OpenStackParser parser = new OpenStackParser();
	
    try {
    	assertEquals("ACTIVE",
            parser.toOpenStackComputeState(ComputeState.ACTIVE));
    	assertEquals("DELETED",
            parser.toOpenStackComputeState(ComputeState.CANCEL));
    	assertEquals("DELETED",
            parser.toOpenStackComputeState(ComputeState.DONE));
    	assertEquals("ERROR",
            parser.toOpenStackComputeState(ComputeState.FAILED));
    	assertEquals("PAUSED",
            parser.toOpenStackComputeState(ComputeState.HOLD));
    	assertEquals("BUILDING",
            parser.toOpenStackComputeState(ComputeState.INIT));
    	assertEquals("BUILDING",
            parser.toOpenStackComputeState(ComputeState.PENDING));
    	assertEquals("REBOOT",
            parser.toOpenStackComputeState(ComputeState.REBOOT));
    	assertEquals("REBUILD",
            parser.toOpenStackComputeState(ComputeState.RESET));
    	assertEquals("ACTIVE",
            parser.toOpenStackComputeState(ComputeState.RESUME));
    	assertEquals("SHUTOFF",
            parser.toOpenStackComputeState(ComputeState.SHUTDOWN));
    	assertEquals("STOPPED",
            parser.toOpenStackComputeState(ComputeState.STOPPED));
    	assertEquals("SUSPENDED",
            parser.toOpenStackComputeState(ComputeState.SUSPENDED));
catch (OCCIException e) {
ail();
}