Gateway g2 = new Gateway();
Gateway g2 = new SipTrunk();
    public void testAddDuplicateGatewayDuplicate() throws Exception {        Gateway g1 = new Gateway();        g1.setName("bongo");        Gateway g2 = new Gateway();        g2.setName("bongo");        // add g1        m_context.storeGateway(g1);        // add g2        try {            m_context.storeGateway(g2);            fail("Duplicate gateway names should not be possible.");        }        catch(UserException e) {            // ok        }    }