@Test
public void shouldGetTypeErr() {

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