@Test(expected=NoSuchStackException.class)
public void testCreateInvalidStack() throws Exception {

  EasyMockSupport mockSupport = new EasyMockSupport();
  BlueprintFactory.StackFactory mockStackFactory =
    mockSupport.createMock(BlueprintFactory.StackFactory.class);
  // setup mock to throw exception, to simulate invalid stack request
  expect(mockStackFactory.createStack("null", "null", null)).andThrow(new ObjectNotFoundException("Invalid Stack"));
  mockSupport.replayAll();
  BlueprintFactory factoryUnderTest =
    new BlueprintFactory(mockStackFactory);
  factoryUnderTest.createStack(new HashMap<String, Object>());
  mockSupport.verifyAll();
}