### Question:
CpkCoreService { public void statusJson( OutputStream out, HttpServletResponse response ) { String json = statusJson( response ); writeMessage( out, json ); } CpkCoreService( ICpkEnvironment environment ); CpkEngine getEngine(); CpkCoreService setEngine( CpkEngine engine ); void createContent( Map<String, Map<String, Object>> bloatedMap ); String getLocalizationResourceContent( String elementId, String resource ); void reload( OutputStream out, Map<String, Map<String, Object>> bloatedMap ); String reload( Map<String, Map<String, Object>> bloatedMap ); void refresh( OutputStream out, Map<String, Map<String, Object>> bloatedMap ); String refresh( Map<String, Map<String, Object>> bloatedMap ); void clearKettleResultsCache(); void status( OutputStream out, Map<String, Map<String, Object>> bloatedMap ); String status( Map<String, Map<String, Object>> bloatedMap ); void statusJson( OutputStream out, HttpServletResponse response ); String statusJson( HttpServletResponse response ); boolean hasElement( String elementId ); Collection<IElement> getElements(); void getElementsList( OutputStream out, Map<String, Map<String, Object>> bloatedMap ); String getElementsList(); IElement getDefaultElement(); RestRequestHandler getRequestHandler();  }### Answer:
@Test public void testStatusJson() { String actualResult = null; try { actualResult = cpkCore.statusJson( null ); JSONObject jsonObj = new JSONObject( actualResult ); assertTrue( jsonObj.has( "pluginName" ) ); assertEquals( "cpkSol", jsonObj.get( "pluginName" ) ); assertTrue( jsonObj.has( "elements" ) ); assertTrue( jsonObj.get( "elements" ) instanceof JSONObject ); assertTrue( jsonObj.has( "elementsCount" ) ); assertTrue( jsonObj.has( "defaultElement" ) ); } catch ( JSONException ex ) { ex.printStackTrace(); } assertNotNull( actualResult ); }