@Test
    void verifyCreateTableWithBillingModePayPerRequest() {
        val client = mock(DynamoDbClient.class);

        val createTableArgMatcher = new CreateTableRequestArgumentMatcher();

        expectCreateTable(client, createTableArgMatcher);

        val attributeName = "attr1";
        val props = new MinimalTestDynamoDbProperties()
            .setBillingMode(AbstractDynamoDbProperties.BillingMode.PAY_PER_REQUEST);
        val attributeDefinitions = List.of(
            AttributeDefinition.builder().attributeName(attributeName)
                .attributeType(ScalarAttributeType.S).build());
        val keySchema = List.of(KeySchemaElement.builder().attributeName(attributeName)
            .keyType(KeyType.HASH).build());

        try {
            DynamoDbTableUtils.createTable(client, props, "test-table",
                false, attributeDefinitions, keySchema);
        } catch (final Exception ex) {
            fail("Failed to create table");
        }

        verify(client).createTable(argThat(createTableArgMatcher));
    }
This is {@link DynamoDbTableUtilsTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-dynamodb-core/src/test/java/org/apereo/cas/dynamodb/DynamoDbTableUtilsTests.java