@Test
public void testFromOpenStackComputeState() {

	OpenStackParser parser = new OpenStackParser();
	
    try {
    	assertEquals(ComputeState.ACTIVE,
            parser.fromOpenStackComputeState("ACTIVE"));
    	assertEquals(ComputeState.PENDING,
            parser.fromOpenStackComputeState("BUILDING"));
ssertEquals(ComputeState.DONE,
            parser.fromOpenStackComputeState("DELETED"));
ssertEquals(ComputeState.FAILED,
            parser.fromOpenStackComputeState("ERROR"));
ssertEquals(ComputeState.RESET,
            parser.fromOpenStackComputeState("HARD_REBOOT"));
ssertEquals(ComputeState.RESET,
            parser.fromOpenStackComputeState("PASSWORD"));
ssertEquals(ComputeState.SUSPENDED,
            parser.fromOpenStackComputeState("PAUSED"));
ssertEquals(ComputeState.REBOOT,
            parser.fromOpenStackComputeState("REBOOT"));
ssertEquals(ComputeState.PENDING,
            parser.fromOpenStackComputeState("REBUILD"));
ssertEquals(ComputeState.RESET,
            parser.fromOpenStackComputeState("RESCUED"));
ssertEquals(ComputeState.RESET,
            parser.fromOpenStackComputeState("RESIZED"));
ssertEquals(ComputeState.RESET,
            parser.fromOpenStackComputeState("REVERT_RESIZE"));
ssertEquals(ComputeState.SHUTDOWN,
            parser.fromOpenStackComputeState("SHUTOFF"));
ssertEquals(ComputeState.DONE,
            parser.fromOpenStackComputeState("SOFT_DELETED"));
ssertEquals(ComputeState.STOPPED,
            parser.fromOpenStackComputeState("STOPPED"));
ssertEquals(ComputeState.SUSPENDED,
            parser.fromOpenStackComputeState("SUSPENDED"));
ssertEquals(ComputeState.FAILED,
            parser.fromOpenStackComputeState("UNKNOWN"));
ssertEquals(ComputeState.RESET,
            parser.fromOpenStackComputeState("VERIFY_RESIZE"));
arser.fromOpenStackComputeState("NOT EXISTING ONE");
     fail();
catch (OCCIException e) {
ssertTrue(true);
}