@Test
public void testGetTemplateInvalid() {

    try {
        zms.getTemplate(mockDomRsrcCtx, "platforms test");
        fail();
    } catch (ResourceException ex) {
        assertEquals(400, ex.getCode());
    }
    
    try {
        zms.getTemplate(mockDomRsrcCtx, "invalid");
        fail();
    } catch (ResourceException ex) {
        assertEquals(404, ex.getCode());
    }
}