@Test
public void testError() {

    
    InstanceAWSProvider provider = new InstanceAWSProvider();
    ResourceException exc = provider.error("unable to access");
    assertEquals(exc.getCode(), 403);
    assertEquals(exc.getMessage(), "ResourceException (403): unable to access");
}