DefaultValueProvider extends AbstractValueProvider { @Override public int getGridPointIndex(int seqnum) { return dggFile.getGridPointIndex(seqnum); } DefaultValueProvider(DggFile dggFile, int memberIndex); @Override final Area getArea(); @Override int getGridPointIndex(int seqnum);  }
@Test public void testGetGridPointIndex() { when(dggFile.getGridPointIndex(anyInt())).thenReturn(34); defaultValueProvider.getGridPointIndex(45); verify(dggFile, times(1)).getGridPointIndex(anyInt()); }