public static <T> BiConsumer<Integer, T> instantiateBiConsumer(Class<? extends BiConsumer<Integer, T>> clazz) {
        try {
            Constructor<? extends BiConsumer<Integer, T>> c = clazz.getConstructor();
            if (c != null) {
                return c.newInstance();
            } else {
                throw new InstantiationException(INSTANTIATION_ERROR_PREFIX + clazz.getName());
            }
        } catch (Exception e) {
            throw new InstantiationException(INSTANTIATION_ERROR_PREFIX + clazz.getName(), e);
        }
    }
@Test
    public void shouldInstantiateBiConsumerClass(){
        assertThat(ClassUtils.instantiateBiConsumer(PublicBiConsumer.class)).isNotNull();
    }