/** The following tests work better as integration tests. */
@Test
public void integration_tests()
{
Registry registry = buildRegistry();
UpcaseService us = registry.getService(UpcaseService.class);
assertEquals(us.upcase("hello"), "HELLO");
assertEquals(
us.toString(),
"<Proxy for Upcase(org.apache.tapestry.ioc.internal.UpcaseService)>");
ToStringService ts = registry.getService(ToStringService.class);
assertEquals(ts.toString(), "<ToStringService: ToString>");
}