JerseyConfig extends ResourceConfig { public JerseyConfig() { this.packages("br.com.autonomiccs.wakeonlan.controller"); } JerseyConfig();   }
@Test public void jerseyConfigTest() { JerseyConfig jerseyConfig = new JerseyConfig(); Set<Class<?>> set = jerseyConfig.getClasses(); Iterator<Class<?>> iter = set.iterator(); Assert.assertEquals(1, set.size()); Assert.assertEquals("class br.com.autonomiccs.wakeonlan.controller.WakeOnLanServiceEndPoint", iter.next().toString()); }