public void testSerialization()
throws Exception
{
SystemTableHandle tableHandle = new SystemTableHandle("xyz", "foo");
Map<String, Object> filters = ImmutableMap.<String, Object>of("foo", "bar");
SystemSplit expected = new SystemSplit(tableHandle, filters, ImmutableList.of(HostAddress.fromParts("127.0.0.1", 0)));
JsonCodec<SystemSplit> codec = jsonCodec(SystemSplit.class);
SystemSplit actual = codec.fromJson(codec.toJson(expected));
assertEquals(actual.getFilters().size(), 1);
assertEquals(actual.getFilters(), expected.getFilters());
}