DefaultValueProvider extends AbstractValueProvider { protected long getLong(int gridPointIndex) throws IOException { return dggFile.getGridPointData(gridPointIndex).getLong(memberIndex); } DefaultValueProvider(DggFile dggFile, int memberIndex); @Override final Area getArea(); @Override int getGridPointIndex(int seqnum);  }
@Test public void testGetLong() throws IOException { when(dggFile.getGridPointData(anyInt())).thenReturn(compoundData); when(compoundData.getLong(anyInt())).thenReturn(6L); defaultValueProvider.getLong(48); verify(dggFile, times(1)).getGridPointData(48); verify(compoundData, times(1)).getLong(anyInt()); }