RepositoryService { @GET @Path("/ci/emailext") @Produces({ MediaType.APPLICATION_OCTET_STREAM }) public InputStream getEmailExtFile()throws Exception { PhrescoServerFactory.initialize(); RepositoryManager repoMgr = PhrescoServerFactory.getRepositoryManager(); return repoMgr.getArtifactAsStream(repoMgr.getEmailExtFile()); }  @GET @Path("/ci/config") @Produces(MediaType.TEXT_PLAIN) String getCiConfigPath(); @GET @Path("/ci/svn") @Produces(MediaType.TEXT_PLAIN) String getCiSvnPath(); @GET @Path("/ci/credentialsxml") @Produces(MediaType.APPLICATION_XML) InputStream getCredentialXmlFile(); @GET @Path("/ci/javahomexml") @Produces(MediaType.APPLICATION_XML) InputStream getJavaHomeXmlFile(); @GET @Path("/ci/mavenhomexml") @Produces(MediaType.APPLICATION_XML) InputStream getMavenHomeXmlFile(); @GET @Path("/ci/mailxml") @Produces({ MediaType.APPLICATION_XML }) InputStream getProducts(); @GET @Path("/ci/emailext") @Produces({ MediaType.APPLICATION_OCTET_STREAM }) InputStream getEmailExtFile(); @GET @Path("/update") @Produces({ MediaType.APPLICATION_OCTET_STREAM }) InputStream getLatestPom();  }
@Test public void testGetEmailExtFile() throws PhrescoException { InputStream eeFile=repoMgr.getArtifactAsStream(repoMgr.getEmailExtFile()); assertNotNull(eeFile); }