Set<String> ids = md.getServiceIds();
assertEquals(ids.size(), 1);
assertTrue(ids.contains("Fred"));
ServiceDef sd = md.getServiceDef("Fred");
assertEquals(sd.getServiceId(), "Fred");
assertEquals(sd.getServiceInterface(), FieService.class);
// The methods are considered in ascending order, by name, then descending order, by
// parameter count. So the grinder will latch onto the method that takes a parameter,
// and consider the other method (with no parameters) the conflict.
assertEquals(sd.toString(), expectedMethod.toString());
verify();
}