@Test
public void testGetInstancesOfTypeUntil_whenPredicateAlwaysTrue_resultsAreFilteredByClass() throws Exception {

    Assertions.assertEquals(ImmutableList.of(1, 3), Types.getInstancesOfTypeUntil(Lists.newArrayList(1, 2.0, 3), Integer.class, n -> true));
}