@Test
public void testGetValueAsInt() throws Exception {

    final HarvesterData data = new HarvesterData();
    data.setValue(1);
    assertEquals(1, data.getValueAsInt());
    assertEquals(1, data.getValueAsLong());
    data.setValue(100);
    assertEquals(100, data.getValueAsInt());
    assertEquals(100, data.getValueAsLong());
}