У меня есть пользовательское связующее:
@BindingAnnotation(CustomBinder.CustomBinderFactory.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.PARAMETER })
public @interface CustomBinder {
class CustomBinderFactory implements BinderFactory<CustomBinder> {
@Override
public Binder<CustomBinder, Entity> build(CustomBinder annotation) {
return (q, bind, arg) -> {
// implement
};
}
}
}
Я хочу написать для этого модульный тест; как мне это сделать?