code: private ServerSetup[] createServerSetup() {
          List<ServerSetup> setups = new ArrayList<>();
          if (smtpProtocol) {
              smtpServerSetup = createTestServerSetup(ServerSetup.SMTP);
              setups.add(smtpServerSetup);
          }
          if (smtpsProtocol) {
              smtpsServerSetup = createTestServerSetup(ServerSetup.SMTPS);
              setups.add(smtpsServerSetup);
          }
          if (pop3Protocol) {
              setups.add(createTestServerSetup(ServerSetup.POP3));
          }
          if (pop3sProtocol) {
              setups.add(createTestServerSetup(ServerSetup.POP3S));
          }
          if (imapProtocol) {
              setups.add(createTestServerSetup(ServerSetup.IMAP));
          }
          if (imapsProtocol) {
              setups.add(createTestServerSetup(ServerSetup.IMAPS));
          }
          return setups.toArray(new ServerSetup[setups.size()]);
      }
docs: Creates the server setup, depending on the protocol flags.
  
  @return the configured server setups.