AbstractService { protected final Application getAdminApplication() { Session s = getSession(); String configId = config.getString(Config.APPLICATION_ID); BigInteger appId = IdUtil.fromString(configId); return s.get(Application.class, appId); }  final InjectionManager getInjector(); final void setInjector(final InjectionManager injector); final UriInfo getUriInfo(); final void setUriInfo(final UriInfo uriInfo); final Session getSession(); final void setSession(final Session session); final SearchFactory getSearchFactory(); final void setSearchFactory(final SearchFactory searchFactory); final FullTextSession getFullTextSession(); final void setFullTextSession(
            final FullTextSession fullTextSession); final Configuration getConfig(); final void setConfig(final Configuration config); final SecurityContext getSecurityContext(); final void setSecurityContext(
            final SecurityContext securityContext);  }
@Test public void testGetAdminApplication() { Application a = service.getAdminApplication(); assertEquals(getAdminContext().getApplication(), a); }