given(configuration.getReportDir()).willReturn(reportDir);
given(configuration.getVersion()).willReturn("theVersion");
given(ioUtils.toStringNoClose(bais, 12)).willReturn("data");
given(bais.skip(50)).willReturn(50L);
List<ScriptCoverageCount> unloadedJS = new ArrayList<ScriptCoverageCount>();
unloadedJS.add(new ScriptCoverageCount("/js/unloaded.js", null, 0, null));
given(unloadedSourceProcessor.getEmptyCoverageData(anySet())).willReturn(unloadedJS);
webServer.handlePostOrPut(new HttpRequest(JSCOVERAGE_STORE, bais, null, 50, headers));
verify(jsonDataSaver).saveJSONData(reportDir, "data", unloadedJS, uriFileTranslator);