### Question:
RawScore implements Comparable<Object> { public RawScore(int numberOfItems){ resposneVectorIndex = new int[numberOfItems]; responseVector = new Object[numberOfItems]; scoreVector = new Double[numberOfItems]; subscale = new TreeMap<String, Double>(); } RawScore(int numberOfItems);  RawScore(double rawScore); void increment(Double score); void incrementResponseVector(Integer position, Object response, Double score); void incrementSubScaleScore(String subscaleKey, double score); void addLinearTransformation(DefaultLinearTransformation linear); double getSubscaleScoreAt(String subscaleKey); TreeMap<String, Double> getSubscaleScore(); Double value(); Double meanValue(); Integer intValue(); Double transformedValue(); Double valueWithRandomUniformVariate(); Object[] getResponseVector(); Double[] getScoreVector(); int[] getResponseVectorIndex(); int compareTo(Object o); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testRawScore() { double[][] x = this.getData(); double[] trueRaw = this.getRawScore(); RawScore[] obsRaw = new RawScore[1000]; for(int i=0;i<1000;i++){ obsRaw[i] = new RawScore(50); for(int j=0;j<50;j++){ obsRaw[i].increment(x[i][j]); } } System.out.println("Testing raw score"); for(int i=0;i<1000;i++){ assertEquals("Testing Raw Score", trueRaw[i], obsRaw[i].value(), 1e-15); } }