public void testToString(){
  LongAccumulator ai=new LongAccumulator(null,0L);
  assertEquals("0",ai.toString());
  ai.accumulate(1);
  assertEquals(Long.toString(1),ai.toString());
}

public void testToString ( ) { LongAccumulator ai = new LongAccumulator ( null , 0L ) ; assertEquals ( "0" , ai . toString ( ) ) ; ai . accumulate ( 1 ) ; assertEquals ( Long . toString ( 1 ) , ai . toString ( ) ) ; }
tostring returns current value .
