Index: kernel-impl/src/test/java/org/sakaiproject/test/SakaiKernelTestBase.java =================================================================== --- kernel-impl/src/test/java/org/sakaiproject/test/SakaiKernelTestBase.java (revision 51441) +++ kernel-impl/src/test/java/org/sakaiproject/test/SakaiKernelTestBase.java (working copy) @@ -56,6 +56,15 @@ } /** + * Get a service bean from the component manager by its unique interface. + * @param service interface + * @return service or null if not found + */ + protected static T getService(Class clazz) { + return (T)testComponentManagerContainer.getService(clazz.getName()); + } + + /** * Perform a one time setup on the Compionent manager, with possible additional components. * @param additional if not null the string is appended to the sandard set of component description * @throws IOException