@Test
public void testThrowZtsException() {

    HttpServletRequest servletRequest = new MockHttpServletRequest();
    HttpServletResponse servletResponse = Mockito.mock(HttpServletResponse.class);
    AuthorityList authListMock = new AuthorityList();
    Authorizer authorizerMock = Mockito.mock(Authorizer.class);
    Object timerMetric = new Object();
    RsrcCtxWrapper wrapper = new RsrcCtxWrapper(servletRequest, servletResponse,
            authListMock, false, authorizerMock, timerMetric, "apiName");
    com.yahoo.athenz.common.server.rest.ResourceException restExc =
            new com.yahoo.athenz.common.server.rest.ResourceException(503, null);
    try {
        wrapper.throwZmsException(restExc);
        fail();
    } catch (ResourceException ex) {
        assertEquals(503, ex.getCode());
    }
}