Test interface with generics, implemented in JS, handed to Java.