assertEquals("Hello petra", helloWorld.getGreetings("petra"));
}
@Test
public void testUnresolvedIntentsOnReference() throws Exception {
HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloUnresolvedIntentsOnReference");
try {
helloWorld.getGreetings("petra");
fail("Exception expected");
} catch (Exception ex) {
assertTrue(ex.getMessage().indexOf("No match because there are unresolved intents [{http://tuscany.apache.org/xmlns/sca/1.1}testIntent2]") > -1);
}
}