if (beanId.equals("gwGeneric")) {
if (beanId.equals("gwGeneric") || beanId.equals("gwSipTrunk")) {
    public void testAllGateways() throws Exception {        Collection models = m_context.getAvailableGatewayModels();        for (Iterator i = models.iterator(); i.hasNext();) {            PhoneModel model = (PhoneModel) i.next();            Gateway gateway = m_context.newGateway(model);            String beanId = model.getBeanId();            assertEquals(gateway.getClass(), m_appContext.getBean(beanId).getClass());            if (beanId.equals("gwGeneric")) {                assertNull(gateway.getSettings());            } else {                assertNotNull(gateway.getSettings());            }            m_context.storeGateway(gateway);        }        ITable actual = TestHelper.getConnection().createDataSet().getTable("gateway");        // one gateway per row        assertEquals(models.size(), actual.getRowCount());    }