baisCaptor.getValue().reset(); byte[] bytes = IOUtils.toByteArray(baisCaptor.getValue()); assertThat(bytes).startsWith(Base64.getEncoder().encode("String 1".getBytes(StandardCharsets.UTF_8))); recorder.stop();
baisCaptor.getValue().reset(); byte[] bytes = IOUtils.toByteArray(baisCaptor.getValue()); assertThat(bytes).startsWith(Base64.getEncoder().encode("String 1".getBytes(StandardCharsets.UTF_8))); recorder.stop();