@Test
public void testReadFromWriteTo() throws IOException {
GeoCluster expected = new GeoCluster(42, DENVER, COLORADO);
BytesStreamOutput out = new BytesStreamOutput();
expected.writeTo(out);
BytesStreamInput in = new BytesStreamInput(out.bytes());
GeoCluster actual = GeoCluster.readFrom(in);
assertThat("Center", actual.center(), closeTo(DENVER));
assertThat("Bounds", actual.bounds(), equalTo(COLORADO));
}