CassandraACLMapper { public Mono<Void> delete(CassandraId cassandraId) { return executor.executeVoid( deleteStatement.bind() .setUUID(CassandraACLTable.ID, cassandraId.asUuid())); } @Inject  CassandraACLMapper(Session session, CassandraUserMailboxRightsDAO userMailboxRightsDAO,
                              CassandraConfiguration cassandraConfiguration, CassandraConsistenciesConfiguration consistenciesConfiguration); Mono<MailboxACL> getACL(CassandraId cassandraId); Mono<ACLDiff> updateACL(CassandraId cassandraId, MailboxACL.ACLCommand command); Mono<ACLDiff> setACL(CassandraId cassandraId, MailboxACL mailboxACL); Mono<Void> delete(CassandraId cassandraId); static final int INITIAL_VALUE; }
@Test void deleteShouldNotThrowWhenDoesNotExist() { assertThatCode(() -> cassandraACLMapper.delete(MAILBOX_ID).block()) .doesNotThrowAnyException(); }