@Test
public void shouldGetTypeOut() {

    PrintStream out = mock(PrintStream.class);
    PrintStream err = mock(PrintStream.class);
    PrintStream result = new StreamPair(out, err).get(StreamPair.Type.OUT);
    assertThat(result, equalTo(out));
    assertThat(result, not(equalTo(err)));
}