### Question:
WisitOutputStream extends OutputStream { public OutputType getType(){ return myType; } WisitOutputStream(final Publisher publisher, final String topic);  WisitOutputStream(final Publisher publisher, final String topic,OutputType outputType); @Override void write(int i); @Override void write(byte[] b); @Override void write(byte[] buf, int off, int len); OutputType getType();  }### Answer:
@Test public void shouldCreateOutputTypeResultByDefault(){ assertThat((new WisitOutputStream(mockpub,"default")).getType()).isEqualTo(RESULT); }
@Test public void shouldReturnOutputTypeErr(){ assertThat((new WisitOutputStream(mockpub,"default", ERR)).getType()).isEqualTo(ERR); }