@Override
    public Mono<byte[]> readPublicKey() {
        return Mono.just(keyPair)
            .map(KeyPair::getPublic)
            .map(PublicKey::getEncoded);
    }
@Test
    void shouldReadPublicKey() throws IOException {
        var realPubKeyBytes = Files.readAllBytes(tempDir.resolve("pat_id_rsa.pub"));

        StepVerifier.create(service.readPublicKey())
            .assertNext(bytes -> assertArrayEquals(realPubKeyBytes, bytes))
            .verifyComplete();
    }