ListRouteValue implements RouteValue { @Override public String toString() { return tableName + "." + columnName + (1 == values.size() ? " = " + new ArrayList<>(values).get(0) : " in (" + Joiner.on(",").join(values) + ")"); }  @Override String toString();  }
@Test public void assertToStringWithEqual() { assertThat(new ListRouteValue<>("order_id", "t_order", Collections.singleton(10)).toString(), is("t_order.order_id = 10")); }
@Test public void assertToStringWithIn() { assertThat(new ListRouteValue<>("order_id", "t_order", Arrays.asList(10, 20)).toString(), is("t_order.order_id in (10,20)")); }