Add testcase for callback groups

Change-Id: Icbdc8612d73bed065227d9edfde1426206886652
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/src/test/callbackgroupgentest.cpp b/src/test/callbackgroupgentest.cpp
new file mode 100644
index 0000000..6493d9a
--- /dev/null
+++ b/src/test/callbackgroupgentest.cpp
@@ -0,0 +1,31 @@
+#include <array>
+#include <string>
+#include <gtest/gtest.h>
+#include "data_types.hpp"
+
+using namespace phosphor::dbus::monitoring;
+
+#include "callbackgroupgentest.hpp"
+
+const std::array<std::vector<size_t>, 4> expectedGroups = {{
+        {0, 1, 2},
+        {0, 1},
+        {2, 4, 5},
+        {5},
+    }
+};
+
+TEST(CallbackGroupGenTest, GroupsSameSize)
+{
+    ASSERT_EQ(sizeof(expectedGroups), sizeof(groups));
+}
+
+TEST(CallbackGroupGenTest, GroupsSameContent)
+{
+    size_t i;
+    for (i = 0; i < expectedGroups.size(); ++i)
+    {
+        ASSERT_EQ(groups[i],
+                  expectedGroups[i]);
+    }
+}