Mono<Integer> mono = Mono.just(1) .subscriberContext(Context.of("key", "value")); StepVerifier.create(mono) .expectAccessibleContext() .contains("key", "value") .then() .expectNext(1) .verifyComplete();