public GetPartitionsPsWithAuthResponse listPartitionsWithAuthInfoRequest(GetPartitionsPsWithAuthRequest req) {
    assertNotNull(req.getId());
    assertNotNull(req.getValidWriteIdList());
    GetPartitionsPsWithAuthResponse res = new GetPartitionsPsWithAuthResponse();
    return res;

  }
TestHiveMetaStoreClient

 This class provides implementation of certain methods from IMetaStoreClient interface.
 It's mainly used to verify the arguments that are sent from HS2 to HMS APIs.
 This class' methods are used when HS2 methods are invoked from
 {@link TestHiveMetaStoreClientApiArgumentsChecker}.

 Tests in this class ensure that both tableId and validWriteIdList are sent from HS2 in the input of
 HMS get_* APIs.
 tableId and validWriteIdList are used to determine whether the response of a given get_* API should
 be served from the cache or the backing DB.
 So, if we want consistent read from cache, it is important to send both validWriteIdList and tableId
 in the get_* API request, so that we can compare them and decide where to send the data from.
 Right now only few get_* APIs take validWriteIdList and tableId in the input.
 As we support more APIs, we should add them here with appropriate test cases.
ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHiveMetaStoreClient.java