@Test
public void testDeleteDomainTemplate() throws Exception {

    
    JDBCConnection jdbcConn = new JDBCConnection(mockConn, true);
    Mockito.when(mockResultSet.getInt(1))
        .thenReturn(5); // domain id
    Mockito.when(mockResultSet.next())
        .thenReturn(true); // this one is for domain id
        
    Mockito.doReturn(1).when(mockPrepStmt).executeUpdate();
    boolean requestSuccess = jdbcConn.deleteDomainTemplate("my-domain", "platforms", null);
    
    // this is combined for all operations above
    
    Mockito.verify(mockPrepStmt, times(1)).setString(1, "my-domain");
    
    Mockito.verify(mockPrepStmt, times(1)).setInt(1, 5);
    Mockito.verify(mockPrepStmt, times(1)).setString(2, "platforms");
    
    assertTrue(requestSuccess);
    jdbcConn.close();
}