source: class StreamPairTest {
  
      @Rule
      public final ExpectedException thrownException;
  
      @Test
      public void shouldGetTypeOut() {
  
target: 
          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)));
      }
  
  }