- @Test\r
- public void deployEngine_invoke_rule_deploy_exception() throws Exception {\r
- thrown.expect(CorrelationException.class);\r
- thrown.expectMessage("Failed to call the rule deployment RESTful API.");\r
-\r
- EasyMock.expect(\r
- engineServiceMock.deploy(EasyMock.anyObject(CorrelationDeployRule4Engine.class)))\r
- .andThrow(\r
- new RuntimeException(""));\r
- PowerMock.replayAll();\r
-\r
- engineWrapper.deployEngine(new CorrelationDeployRule4Engine());\r
-\r
- PowerMock.verifyAll();\r