GridPointInfo { int getGridPointIndex(int seqnum) { if (seqnum < minSeqnum || seqnum > maxSeqnum) { return -1; } return indexes[seqnum - minSeqnum]; } GridPointInfo(int minSeqnum, int maxSeqnum);   }
@Test public void testConstructFillsWithInvalid() { final GridPointInfo gridPointInfo = new GridPointInfo(12, 19); assertEquals(-1, gridPointInfo.getGridPointIndex(14)); assertEquals(-1, gridPointInfo.getGridPointIndex(18)); }