instead of having this defined as a static method, maybe there could be a `getQuery` method on the `TestQueryType` enum?