@Test
public void vanillaBatchGetItemTest() throws Exception {
this.vanillaBatchWriteItemTest();
BatchGetItemRequest batchGetItemRequest = new BatchGetItemRequest();
Map<String, KeysAndAttributes> requestItems = new HashMap<String, KeysAndAttributes>();
KeysAndAttributes keysAndAttributes = new KeysAndAttributes();
List<String> attributesToGet = new ArrayList<String>();
attributesToGet.add(hashKeyValue1);
keysAndAttributes.setAttributesToGet(attributesToGet);
List<Key> keys = new ArrayList<Key>();
KeysAndAttributes keysAndAttributes1 = new KeysAndAttributes();
List<String> attributesToGet1 = new ArrayList<String>();
attributesToGet1.add(hashKeyValue2);
keysAndAttributes1.setAttributesToGet(attributesToGet1);
//Test case 1: Every request has matches.
// keys.add(new Key(new AttributeValue("4")));
// keys.add(new Key(new AttributeValue("5")));
// keys.add(new Key(new AttributeValue("3")));
//Test case 2: Requests has no match.
keys.add(new Key(new AttributeValue("1")));
//Test case 3: Complicated test, some requests has matches, some doesn't.
// keys.add(new Key(new AttributeValue("7")));
// keys.add(new Key(new AttributeValue("4")));
//Test case 4: Duplicated request
//Duplicated requests return duplicated results.
// keys.add(new Key(new AttributeValue("7")));
// keys.add(new Key(new AttributeValue("7")));
// keys.add(new Key(new AttributeValue("4")));
// keys.add(new Key(new AttributeValue("4")));
keysAndAttributes.setKeys(keys);
keysAndAttributes1.setKeys(keys);
//Test case for Exception: Table doesn't exist.
// requestItems.put("Vito's Table", keysAndAttributes);
// Normal test
// TODO: Multi table test failed. Need to be fixed.