RestResourceTagBuilder { public static SetX<Class<?>> restResourceTags(String... classes){ return (SetX)SetX.fromIterable(concat(Stream.of(classes).map(cl -> toClass(cl)).collect(Collectors.toList()),defaultTags)); }  static SetX<Class<?>> restResourceTags(String... classes); static SetX<Class<?>> restResourceTags(Class... classes); static SetX<Class<? extends Annotation>> restAnnotations(String... classes); static SetX<Class<? extends Annotation>> restAnnotations(Class<? extends Annotation>... classes);  }
@Test(expected=ClassNotFoundException.class) public void testRestResourceTagNonsense() { RestResourceTagBuilder.restResourceTags("com.oath.micro.server.module.RestResourceTagBuilderTest","nonsense"); fail("should not get here, ClassNotFound expected"); }
@Test public void testRestResourceTag() { assertThat(RestResourceTagBuilder.restResourceTags("com.oath.micro.server.module.RestResourceTagBuilderTest"), hasItem( RestResourceTagBuilderTest.class)); }
@Test public void testRestResourceTagClasses() { assertThat(RestResourceTagBuilder.restResourceTags(RestResourceTagBuilderTest.class), hasItem( RestResourceTagBuilderTest.class)); }
@Test public void testRestResourceTagDefaults() { assertThat(RestResourceTagBuilder.restResourceTags("com.oath.micro.server.module.RestResourceTagBuilderTest"), hasItem( CommonRestResource.class)); }
@Test public void testRestResourceTagClassesDefaults() { assertThat(RestResourceTagBuilder.restResourceTags(RestResourceTagBuilderTest.class), hasItem( CommonRestResource.class)); }