    @Test(expected=IllegalArgumentException.class)
    public void isSlave_invalid_factory_name() {

        factory1.addSlaveJdbcManagerName("slave1");
        factory2.addSlaveJdbcManagerName("slave1");

        masterSlaveContext.isSlave("not exists factory");
    }