We'll want a test that uses the dynamic columns in the WHERE clause and in the SELECT clause. Take a look at NativeHBaseTypesTest - you'll need something similar because you need to create data that includes these dynamic key values - the normal Phoenix UPSERT api wouldn't let you add them. I think in the end, it would make sense to have a unit test class just for this feature, like a DynamicColumnTest. You can copy/paste from NativeHBaseTypesTest to create the data or just use it as a guide.