@Test
public void apply() throws Exception {

    List<Class<?>> classes = Observable
            .from(RxPartialFunc.apply(ACTION_6, 1, 2, 3).getClass().getInterfaces())
            .filter(TestHelpers.classCompare(Func3.class)).toList().toBlocking().first();
    Assert.assertEquals(1, classes.size());
    classes = Observable
            .from(RxPartialFunc.apply(ACTION_9, 1, 2, 3, 4, 5, 6, 7, 8, 9).getClass()
                    .getInterfaces())
            .filter(TestHelpers.classCompare(Func0.class)).toList().toBlocking().first();
    Assert.assertEquals(1, classes.size());
    classes = Observable
            .from(RxPartialFunc.apply(ACTION_N, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1,
                    2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3).getClass()
            .getInterfaces()).filter(TestHelpers.classCompare(Func0.class)).toList()
            .toBlocking().first();
    Assert.assertEquals(1, classes.size());
}