package com.amazonaws.services.dynamodbv2.datamodeling;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import com.amazonaws.services.dynamodbv2.model.DeleteTableRequest;

public class DynamoDBMapperTest {

    @Test
    public void testGenerateDeleteTableRequest(){
        String prefix = "DEV-";
        final String tableName = "OBJECTORMEXAMPLE";

        DynamoDBMapperConfig.TableNameOverride tableNameOverride =
                DynamoDBMapperConfig.TableNameOverride.withTableNamePrefix(prefix);
        DynamoDBMapperConfig config = new DynamoDBMapperConfig(tableNameOverride);
        DynamoDBMapper dynamoDBMapper = new DynamoDBMapper(null, config);

        // Create the simplest table as possible for our test purposes only
        @DynamoDBTable(tableName = tableName)
        class ObjectORMExample{}

        // test
        DeleteTableRequest deleteTableRequest = dynamoDBMapper.generateDeleteTableRequest(ObjectORMExample.class);
        assertEquals(deleteTableRequest.getTableName(), prefix.concat(tableName));
    }

}

@@ -278,16 +278,561 @@
 eRequest
+1()%7B%0A        final String tableName = %22OBJECTORMEXAMPLE%22;%0A%0A        DynamoDBMapper dynamoDBMapper = new DynamoDBMapper(null);%0A%0A        // Create the simplest table as possible for our test purposes only%0A        @DynamoDBTable(tableName = tableName)%0A        class ObjectORMExample%7B%7D%0A%0A        // test%0A        DeleteTableRequest deleteTableRequest = dynamoDBMapper.generateDeleteTableRequest(ObjectORMExample.class);%0A        assertEquals(deleteTableRequest.getTableName(), tableName);%0A    %7D%0A%0A    @Test%0A    public void testGenerateDeleteTableRequest2
 ()%7B%0A    

Add test not overriding table name