@Test(expected = CloudRuntimeException.class)
public void executeTemplateQueryAndRetrieveBooleanTestWithCloudRuntimeException() {

    Mockito.when(jdbcTemplate.queryForObject(Mockito.eq(sqlIsTemplateRegistered), Mockito.any(Object[].class), Mockito.eq(Integer.class))).thenReturn(new Integer(2));
    spy.executeTemplateQueryAndRetrieveBoolean("templateName", sqlIsTemplateRegistered);
    Mockito.verify(jdbcTemplate).queryForObject(Mockito.eq(sqlIsTemplateRegistered), Mockito.any(Object[].class), Mockito.eq(Integer.class));
}