/** * Creates a new instance of <code>{@link ByteArrayAssert}</code>. * @param actual the actual value. * @return the created assertion object. */ public static ByteArrayAssert assertThat(byte[] actual) { return new ByteArrayAssert(actual); }
baisCaptor.getValue().reset(); byte[] bytes = IOUtils.toByteArray(baisCaptor.getValue()); assertThat(bytes).startsWith(Base64.getEncoder().encode("String 1".getBytes(StandardCharsets.UTF_8))); recorder.stop();