@BeforeEach
    public void setup() throws Exception {
        doReturn("conference").when(mockService).getServiceName();
        doReturn("conference.example.org").when(mockService).getServiceDomain();

        when(mockMUCManager.getMultiUserChatService(anyString())).thenReturn(mockService);
        //when(mockMUCManager.getMultiUserChatService((JID)any())).thenReturn(mockService);
        when(xmppServer.getMultiUserChatManager()).thenReturn(mockMUCManager);

        //noinspection deprecation
        XMPPServer.setInstance(xmppServer);
    }
Unit tests that verify the implementation of {@link MUCRoom}.

@author Guus der Kinderen, guus.der.kinderen@gmail.com
xmppserver/src/test/java/org/jivesoftware/openfire/muc/MUCRoomTest.java