### Question:
SpoonCodeInstrument extends JfxInstrument implements Initializable { Stream<Class<?>> getDirectSpoonInterfaces(final Class<?> cl) { return Arrays .stream(cl.getInterfaces()) .filter(inter -> inter.getPackageName().startsWith("spoon.")); }  @Override void initialize(final URL url, final ResourceBundle res);  }### Answer:
@Test void getDirectSpoonInterfacesOfClass() { final List<Class<?>> inter = spoonCodeInstrument.getDirectSpoonInterfaces(CtClass.class).collect(Collectors.toList()); assertThat(inter).containsExactlyInAnyOrder(CtType.class, CtStatement.class); }
@Test void getDirectSpoonInterfacesOfFor() { final List<Class<?>> inter = spoonCodeInstrument.getDirectSpoonInterfaces(CtFor.class).collect(Collectors.toList()); assertThat(inter).containsExactly(CtLoop.class); }