@Test
public void isTemplateRegisteredAndReadyTest() {

    Mockito.doReturn(true).when(spy).executeTemplateQueryAndRetrieveBoolean(Mockito.eq("TemplateName"),
            Mockito.eq(sqlIsTemplateRegisteredAndReady));
    boolean result = spy.isTemplateRegisteredAndReady("TemplateName");
    Mockito.verify(spy).executeTemplateQueryAndRetrieveBoolean(Mockito.eq("TemplateName"), Mockito.eq(sqlIsTemplateRegisteredAndReady));
    Assert.assertTrue(result);
}