@Test
public void testNearestTimeStep_threeTimeValues() {

    when(array.getSize()).thenReturn(3L);
    when(array.getInt(0)).thenReturn(21);
    when(array.getInt(1)).thenReturn(17);
    when(array.getInt(2)).thenReturn(13);
    final int nearestTimeStep = NwpUtil.nearestTimeStep(array, 18);
    assertEquals(1, nearestTimeStep);
}