StdioInputStream extends FilterInputStream { @Nullable public StdioType getType() { return type; } StdioInputStream(@Nonnull InputStream stream, @Nullable StdioType type); @Nullable StdioType getType();  }
@Test public void stdioType() { StdioType type = StdioType.STDOUT; StdioInputStream stream = new StdioInputStream(TestInputStream.empty(), type); assertThat(stream.getType()).isSameAs(type); }
@Test public void nullType() { StdioInputStream stream = new StdioInputStream(TestInputStream.empty(), null); assertThat(stream.getType()).isNull(); }