@Test
public void testNearestTimeStep_twoTimeValues() {

    when(array.getSize()).thenReturn(2L);
    when(array.getInt(0)).thenReturn(15);
    when(array.getInt(1)).thenReturn(19);
    final int nearestTimeStep = NwpUtil.nearestTimeStep(array, 18);
    assertEquals(1, nearestTimeStep);
}