public void test() throws Exception {
Map<String, Object> a = new HashMap<String, Object>();
a.put("project", "test-project");
SpyProcess spyAfter = new SpyProcess() {
@Override
public void spy(MuleEvent event) throws MuleException {
Assert.assertTrue("Mocked Jira".equals(event.getMessage().getPayload()));
System.out.println(event.getMessage().getPayload());
}
};
SpyProcess spyBefore = new SpyProcess() {
@Override
public void spy(MuleEvent event) throws MuleException {
Assert.assertTrue(event.getMessage().getPayload() instanceof Map);
System.out.println(event.getMessage().getPayload());
}