### Question:
TailTypeInjector { public List<TailType> getTailTypeFromArgs(String... types) { List<TailType> tailers = new LinkedList<TailType>(); TailType tailType = null; for (String type : types) { if ("".equals(type)) { System.out.println("------------- WARNING -----------------"); System.out.println("---- No Tail Type passed as argument, using default NoOpTailType ----"); tailers.add(new NoopTailType()); } else { Class<?> clazz; try { clazz = Class.forName("org.mongo.tail.types." + type); tailType = (TailType) clazz.newInstance(); tailers.add(tailType); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { e.printStackTrace(); throw new RuntimeException( "Unknown tail type passed to TailTypeInjector. You must pass the name of the TailType class."); } } } return tailers; }  List<TailType> getTailTypeFromArgs(String... types);  }### Answer:
@Test public void testNoopType() { TailTypeInjector inj = new TailTypeInjector(); List<TailType> tailTypeFromArgs = inj.getTailTypeFromArgs("NoopTailType"); assertTrue(tailTypeFromArgs.get(0) instanceof NoopTailType); }