byte[] tableName = Bytes.toBytes("testGetTableEntityGroups");
int expectedEntityGroups = 10;
// Use 80 bit numbers to make sure we aren't limited
byte[] startKey = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
byte[] endKey = { 9, 9, 9, 9, 9, 9, 9, 9, 9, 9 };
FTable desc = FMetaTestUtil.makeTable("testGetTableEntityGroups");
admin.createTable(desc, startKey, endKey, expectedEntityGroups);
List<EntityGroupInfo> egis = admin.getTableEntityGroups(tableName);
assertEquals("Tried to create " + expectedEntityGroups + " EntityGroups "
+ "but only found " + egis.size(), expectedEntityGroups, egis.size());
}