@Test
public void testGetInstancesOfTypeUntil_negativeNumberOccurs() throws Exception {

    Assertions.assertEquals(ImmutableList.of(1.0, 3.0), Types.getInstancesOfTypeUntil(Lists.newArrayList(1.0, 2, 3.0, -4.0, 5.0), Double.class, number -> number.intValue() >=  0));
}