### Question:
TunnelFactory { public TunnelInput createInput( ObjectInputStream objectInputStream ) { return new TunnelInput( objectInputStream, serializerMap ); } TunnelFactory(); void setSerializers( List<TunnelSerializer<?>> serializers ); void populateSerializerMap( ); void addSerializer( TunnelSerializer<?> serializer ); void removeSerializer( TunnelSerializer<?> serializer ); TunnelSerializer getSerializer( Class clazz ); TunnelOutput createOutput( ObjectOutputStream outputStream ); TunnelInput createInput( ObjectInputStream objectInputStream );  }### Answer:
@Test public void createInput() throws Exception { ObjectInputStream mock = mock( ObjectInputStream.class ); TunnelInput input = factory.createInput( mock ); assertNotNull( input ); }