@Test
public void testGetConnectionException() {

    // passing null for table name to get exception
    DynamoDBCertRecordStore store = new DynamoDBCertRecordStore(dbClient, null, "Athenz-ZTS-Current-Time-Index", null);
    try {
        store.getConnection();
        fail();
    } catch (Exception ignored) {
    }
    // passing null for index name to get exception
    store = new DynamoDBCertRecordStore(dbClient, "Athenz-ZTS-Table", null, null);
    try {
        store.getConnection();
        fail();
    } catch (Exception ignored) {
    }
}