### Question:
ShardingValueWrapper { public long longValue() { return numberValue().longValue(); } ShardingValueWrapper(final Comparable<?> value); long longValue(); double doubleValue(); Date dateValue(final String format); Date dateValue(); String toString(final String format); @Override String toString();  }### Answer:
@Test public void testLongValue() throws Exception { assertThat(new ShardingValueWrapper((short) 1).longValue(), is(1L)); assertThat(new ShardingValueWrapper(1).longValue(), is(1L)); assertThat(new ShardingValueWrapper(1L).longValue(), is(1L)); assertThat(new ShardingValueWrapper(1.0F).longValue(), is(1L)); assertThat(new ShardingValueWrapper(1.0D).longValue(), is(1L)); assertThat(new ShardingValueWrapper("1").longValue(), is(1L)); Date now = new Date(); assertThat(new ShardingValueWrapper(now).longValue(), is(now.getTime())); }