### Question:
MsoKeystoneUtils extends MsoTenantUtils { public MsoTenant queryTenant(String tenantId, String cloudSiteId) throws MsoException { CloudSite cloudSite = cloudConfig.getCloudSite(cloudSiteId).orElseThrow(() -> new MsoCloudSiteNotFound(cloudSiteId)); Keystone keystoneAdminClient = getKeystoneAdminClient(cloudSite); try { Tenant tenant = findTenantById(keystoneAdminClient, tenantId); if (tenant == null) { return null; } Map<String, String> metadata = new HashMap<>(); if (cloudSite.getIdentityService().getTenantMetadata()) { OpenStackRequest<Metadata> request = keystoneAdminClient.tenants().showMetadata(tenant.getId()); Metadata tenantMetadata = executeAndRecordOpenstackRequest(request); if (tenantMetadata != null) { metadata = tenantMetadata.getMetadata(); } } return new MsoTenant(tenant.getId(), tenant.getName(), metadata); } catch (OpenStackBaseException e) { throw keystoneErrorToMsoException(e, "QueryTenant"); } catch (RuntimeException e) { throw runtimeExceptionToMsoException(e, "QueryTenant"); } }  String createTenant(String tenantName, String cloudSiteId, Map<String, String> metadata, boolean backout); MsoTenant queryTenant(String tenantId, String cloudSiteId); MsoTenant queryTenantByName(String tenantName, String cloudSiteId); boolean deleteTenant(String tenantId, String cloudSiteId); boolean deleteTenantByName(String tenantName, String cloudSiteId); Keystone getKeystoneAdminClient(CloudSite cloudSite); Tenant findTenantByNameOrId(Keystone adminClient, String tenantNameOrId); Tenant findTenantByName(Keystone adminClient, String tenantName); User findUserByName(Keystone adminClient, String userName); @Override String getKeystoneUrl(String regionId, CloudIdentity cloudIdentity); static final String DELETE_TENANT; }### Answer:
@Test public void queryTenantTest() throws Exception { StubOpenStack.mockOpenStackGetTenantById(wireMockServer, "tenantId"); MsoTenant msoTenant = msoKeystoneUtils.queryTenant("tenantId", "MTN13"); Assert.assertEquals("testingTenantName", msoTenant.getTenantName()); }