DefaultValueProvider extends AbstractValueProvider { @Override protected int getInt(int gridPointIndex) throws IOException { return dggFile.getGridPointData(gridPointIndex).getInt(memberIndex); } DefaultValueProvider(DggFile dggFile, int memberIndex); @Override final Area getArea(); @Override int getGridPointIndex(int seqnum);  }
@Test public void testGetInt() throws IOException { when(dggFile.getGridPointData(anyInt())).thenReturn(compoundData); when(compoundData.getInt(anyInt())).thenReturn(5); defaultValueProvider.getInt(47); verify(dggFile, times(1)).getGridPointData(47); verify(compoundData, times(1)).getInt(anyInt()); }