@Test
public void testBlockDomain() throws Exception
{

    executionStateCache.setInstances(createInstances());
    try {
        ssmStepDefinitions.blockDomain("www.test.com", 1);
    }
    catch (Throwable t)
    {
     //   t.printStackTrace();
    }
    Assert.assertEquals(executionStateCache.getCommandId(), "1234");
    Assert.assertTrue(executionStateCache.getInstances().size()>0);
    Assert.assertEquals(executionStateCache.getBlockedDomains().get(0), "www.test.com");
    Assert.assertTrue(executionStateCache.getSsmCommandInvocationInstances().size() > 0);
}