### Question:
ServiceColManager { public JSONArray getServiceReferences() throws JSONException, QueryException, PersistentStoreFailureException { JSONArray arr = new JSONArray(); arr = serviceDB .queryDistinctJSON(ServiceBasicAttributeNames.SERVICE_ENDPOINT_URL .getAttributeName()); return arr; } ServiceColManager();  ServiceColManager(MongoDBServiceDatabase mongodb); JSONArray getServiceReferences(); JSONArray getServicesByType(String serviceType); JSONArray getDistinctTypes(); JSONArray queryForJSON(Map<String, Object> m); JSONArray queryForJSON(JSONObject jo, Map<String, Object> m); QueryResult queryForXML(Map<String, Object> m); QueryResult queryForXML(JSONObject jo, Map<String, Object> m); @Deprecated JSONArray pagedQueryForJSON(Map<String, Object> m); Long getTotalNumberOfEntries(); static final String SKIP; static final String LIMIT; static final String PAGE_SIZE; static final String REF; }### Answer:
@Test public void testGetServiceByRefernces() { try { JSONArray o = mgr.getServiceReferences(); assertNotNull(o); System.out.println(o); } catch (JSONException e) { fail(); e.printStackTrace(); } catch (QueryException e) { fail(); e.printStackTrace(); } catch (PersistentStoreFailureException e) { fail(); e.printStackTrace(); } }