@Test
public void marshalInteger() throws IOException {

    List<Marshaler<?>> marshalers = Arrays.asList(STRING_MARSHALER, INTEGER_MARSHALER);
    ObjectNode actual = MarshalingTreeBuilder.marshal(42, marshalers, (path, marshaler, object) -> true);
    Assert.assertEquals(
        actual,
        MarshaledReplacementObjectNode.of(
            INTEGER_MARSHALER,
            MarshaledReplacementObjectNode.of(
                STRING_MARSHALER,
                ByteSequenceNode.of(ByteSequences.arrayBacked("42".getBytes(StandardCharsets.UTF_8)))
            )
        )
    );
}