public TransactWriteItem buildTransactWriteItemForDeletion(final UUID identifier, final byte deviceId) {
    return TransactWriteItem.builder()
        .delete(Delete.builder()
            .tableName(tableName)
            .key(getPrimaryKey(identifier, deviceId))
            .build())
        .build();
  }
@Test
  void buildTransactWriteItemForDeletion() {
    final RepeatedUseSignedPreKeyStore<K> keys = getKeyStore();

    final UUID identifier = UUID.randomUUID();
    final byte deviceId2 = 2;
    final K retainedPreKey = generateSignedPreKey();

    keys.store(identifier, Device.PRIMARY_ID, generateSignedPreKey()).join();
    keys.store(identifier, deviceId2, retainedPreKey).join();

    getDynamoDbClient().transactWriteItems(TransactWriteItemsRequest.builder()
            .transactItems(keys.buildTransactWriteItemForDeletion(identifier, Device.PRIMARY_ID))
        .build());

    assertEquals(Optional.empty(), keys.find(identifier, Device.PRIMARY_ID).join());
    assertEquals(Optional.of(retainedPreKey), keys.find(identifier, deviceId2).join());
  }