@Test
    void verifyCreateTableWithBillingModeProvisioned() {
        val client = mock(DynamoDbClient.class);
        val readCapacity = 7L;
        val writeCapacity = 9L;

        val createTableArgMatcher = new CreateTableRequestArgumentMatcher(readCapacity, writeCapacity);
        expectCreateTable(client, createTableArgMatcher);

        val attributeName = "attr1";
        val props = new MinimalTestDynamoDbProperties()
            .setBillingMode(AbstractDynamoDbProperties.BillingMode.PROVISIONED)
            .setReadCapacity(readCapacity)
            .setWriteCapacity(writeCapacity);
        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