BytesStreamOutput streamOutput = new BytesStreamOutput();
state.writeTo(streamOutput);
AggregationState newState = impl.newState();
newState.readFrom(new BytesStreamInput(streamOutput.bytes()));
assertEquals(state.value(), newState.value());
}
@Test
public void testFloat() throws Exception {