DefaultValueProvider extends AbstractValueProvider { @Override protected byte getByte(int gridPointIndex) throws IOException { return dggFile.getGridPointData(gridPointIndex).getByte(memberIndex); } DefaultValueProvider(DggFile dggFile, int memberIndex); @Override final Area getArea(); @Override int getGridPointIndex(int seqnum);  }
@Test public void testGetByte() throws IOException { when(dggFile.getGridPointData(anyInt())).thenReturn(compoundData); when(compoundData.getByte(anyInt())).thenReturn(new Byte("1")); defaultValueProvider.getByte(45); verify(dggFile, times(1)).getGridPointData(45); verify(compoundData, times(1)).getByte(anyInt()); }