@Test
public void testPostDomainMetrics() {

    Principal principal = SimplePrincipal.create("user_domain", "user",
            "auth_creds", PRINCIPAL_AUTHORITY);
    ZTSRDLClientMock ztsClientMock = new ZTSRDLClientMock();
    ZTSClient client = new ZTSClient("http://localhost:4080", principal);
    client.setZTSRDLGeneratedClient(ztsClientMock);
    List<DomainMetric> metricList = new ArrayList<>();
    metricList.add(
            new DomainMetric().
                    setMetricType(DomainMetricType.ACCESS_ALLOWED_DENY_NO_MATCH).
                    setMetricVal(99));
    DomainMetrics req = new DomainMetrics().
            setDomainName("coretech").
            setMetricList(metricList);
    client.postDomainMetrics("coretech", req);
    client.close();
}