@Test public void testModel() throws Exception { ClusterSlotRange range = new ClusterSlotRange(); range.setFrom(1); range.setTo(2); range.setSlaves(Lists.<HostAndPort>newArrayList()); range.setMaster(HostAndPort.fromHost("localhost")); assertThat(range.toString()).contains(ClusterSlotRange.class.getSimpleName()); }