@Test
public void serializesCorrectly() throws Exception {

  SecretRetrievalCursor cursor = SecretRetrievalCursor.of("test-secret", 1234567);
  assertThat(asJson(cursor))
      .isEqualTo("{\"name\":\"test-secret\",\"expiry\":1234567}");
}