assertNotNull( getUserService( authorizationHeader ).createGuestUser() );
}
createAndIndexRepo( testRepoId, "src/test/repo-with-osgi" );
SearchService searchService = getSearchService( authorizationHeader );
// START SNIPPET: searchservice-with-osgi
SearchRequest searchRequest = new SearchRequest();
searchRequest.setBundleSymbolicName( "org.apache.karaf.features.command" );
// END SNIPPET: searchservice-with-osgi
List<Artifact> artifacts = searchService.searchArtifacts( searchRequest );
assertNotNull( artifacts );
assertTrue(
" not 1 results for Bundle Symbolic Name org.apache.karaf.features.command but " + artifacts.size() + ":"
+ artifacts, artifacts.size() == 1 );