### Question:
TunnelFactory { public TunnelOutput createOutput( ObjectOutputStream outputStream ) { return new TunnelOutput( outputStream, 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 createOutput() throws Exception { ObjectOutputStream mock = mock( ObjectOutputStream.class ); TunnelOutput output = factory.createOutput( mock ); assertNotNull( output ); }