@Test
public void testRegisterServiceClass() {

    ssm.startup();
    SampleAnnotationBean sab = ssm.registerServiceClass("newAnnote", SampleAnnotationBean.class);
    assertNotNull(sab);
    sab = null;
    List<SampleAnnotationBean> l = ssm.getServicesByType(SampleAnnotationBean.class);
    assertNotNull(l);
    assertEquals(2, l.size());
    l = null;
    try {
        ssm.registerService("fakey", (Class<?>)null);
        fail("should have thrown exception");
    } catch (IllegalArgumentException e) {
        assertNotNull(e.getMessage());
    }
}