IntegerHolder extends AbstractValueHolder { @Override public long longValue() { return value != null ? value : 0; } IntegerHolder(Long value); @Override Long getValue(); @Override int intValue(); @Override long longValue(); @Override BigDecimal getBigDecimal(); @Override Integer getInteger(); @Override Long getLong();  }
@Test() public void testLongValue() { assertEquals(long1.longValue(), h1.longValue()); assertEquals(long2.longValue(), h2.longValue()); assertEquals(0L, h3.longValue()); }