NodeType implements Serializable { public Class<?>[] getInputs() { Constructor constructor = getConstructor(); if(constructor == null) { return new Class[0]; } return constructor.getParameterTypes(); } NodeType(Class<? extends BaseIterator> nodeClass); Class<? extends BaseIterator> getIteratorClass(); Class<?>[] getInputs(); Class<?>[] getParameterTypes(int length); boolean isIteratorOrArray(Class c); String toString();  }
@Test public void testGetInputs() throws Exception { NodeType n = new NodeType(FakeIterator.class); Class[] input = n.getInputs(); assertEquals(3, input.length); assertEquals(NodeParameters.class, input[0]); assertEquals(ExtentIterator.class, input[1]); assertEquals(new ScoreIterator[0].getClass(), input[2]); }