AbstractRsJs { protected SequenceInputStream getSequenceInputStream(List<InputStream> streams) { return new SequenceInputStream(Collections.enumeration(streams)); }  @GET @Produces(Constants.JSTYPE) Response getJs();  }
@Test public void testGetSequenceInputStream() { System.out.println("getSequenceInputStream"); InputStream stream1 = new ByteArrayInputStream("body1".getBytes()); InputStream stream2 = new ByteArrayInputStream("body2".getBytes()); InputStream expresult = new ByteArrayInputStream("body1body2".getBytes()); List<InputStream> streams = Arrays.asList(stream1, stream2); SequenceInputStream result = instance.getSequenceInputStream(streams); assertThat(result).hasSameContentAs(expresult); }