@Test public void testGetAnnotatedTables() { List<TableDescription> tables = DynamoTestUtils.MAPPER.getTables(DynamoTestUtils.PACKAGE); assertNotNull(tables); assertEquals(2, tables.size()); Map<String, TableDescription> tableMap = new HashMap<String, TableDescription>(); for (TableDescription table : tables) { tableMap.put(table.getTableName(), table); } String tableName = Environment.LOCAL.name().toLowerCase() + "-" + DynamoTestUtils.class.getSimpleName() + "-TestHealthDataRecord"; TableDescription table = tableMap.get(tableName); assertNotNull(table); assertEquals(2, table.getKeySchema().size()); assertEquals(5, table.getAttributeDefinitions().size()); assertEquals(2, table.getLocalSecondaryIndexes().size()); assertEquals(1, table.getGlobalSecondaryIndexes().size()); assertEquals(30L, table.getProvisionedThroughput().getReadCapacityUnits().longValue()); assertEquals(50L, table.getProvisionedThroughput().getWriteCapacityUnits().longValue()); }