@Test
  public void testServerConnectionAcceptsOldInternalMessagesIfAllowed() throws Exception {

    ServerConnection serverConnection = mock(ServerConnection.class);
    when(serverConnection.isInternalMessage(any(Message.class), any(Boolean.class)))
        .thenCallRealMethod();

    MessageType[] oldInternalMessages =
        new MessageType[] {MessageType.ADD_PDX_TYPE, MessageType.ADD_PDX_ENUM,
            MessageType.REGISTER_INSTANTIATORS, MessageType.REGISTER_DATASERIALIZERS};

    for (final MessageType oldInternalMessage : oldInternalMessages) {
      Message message = mock(Message.class);
      when(message.getMessageType()).thenReturn(oldInternalMessage);

      Assert.assertFalse(serverConnection.isInternalMessage(message, false));
      Assert.assertTrue(serverConnection.isInternalMessage(message, true));
    }
  }
this class contains test methods that used to be in its superclass but that test started taking
too long and caused dunit runs to hang
geode-core/src/upgradeTest/java/org/apache/geode/security/ClientAuthenticationPart2DUnitTest.java