### Question:
CpkCoreService { public void reload( OutputStream out, Map<String, Map<String, Object>> bloatedMap ) { refresh( out, bloatedMap ); } 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 testReloadRefreshStatus() throws IOException { OutputStream out = new ByteArrayOutputStream(); refreshBloatedMapStream( out ); cpkCore.reload( out, bloatedMap ); String str = out.toString(); out.close(); assertTrue( str.contains( STATUS_RESULT ) ); assertFalse( str.contains( "null" ) ); }
@Test public void testReloadRefreshStatusStringResult() throws IOException { OutputStream out = new ByteArrayOutputStream(); refreshBloatedMapStream( out ); String actualResult = cpkCore.reload( bloatedMap ); assertTrue( actualResult.contains( STATUS_RESULT ) ); assertFalse( actualResult.contains( "null" ) ); }