ProjectData () { return new ProjectData() { @Override public ClassData getClassData(String name) { ClassData data = new ClassData(name); LineData lineData = new LineData(1, "foo"); lineData.setHits(1); data.registerMethodSignature(lineData); LineData lineData1 = new LineData(2, "bar"); data.registerMethodSignature(lineData1); data.setLines(new LineData[] {lineData, lineData1}); return data; } }; }