DefaultValueProvider extends AbstractValueProvider { @Override protected float getFloat(int gridPointIndex) throws IOException { return dggFile.getGridPointData(gridPointIndex).getFloat(memberIndex); } DefaultValueProvider(DggFile dggFile, int memberIndex); @Override final Area getArea(); @Override int getGridPointIndex(int seqnum);  }
@Test public void testGetFloat() throws IOException { when(dggFile.getGridPointData(anyInt())).thenReturn(compoundData); when(compoundData.getFloat(anyInt())).thenReturn(7.f); defaultValueProvider.getFloat(49); verify(dggFile, times(1)).getGridPointData(49); verify(compoundData, times(1)).getFloat(anyInt()); }