src/main/java/com/github/mikesafonov/smpp/core/ClientFactory.java
public SenderClient testSender(@NotNull SenderClient senderClient, @NotNull SmppProperties.Defaults defaults,
                                   @NotNull SmppProperties.SMSC smsc,
                                   @NotNull SmppResultGenerator smppResultGenerator) {
        requireNonNull(senderClient);
        requireNonNull(defaults);
        requireNonNull(smppResultGenerator);
        requireNonNull(smsc);

        String[] phones = getOrDefault(smsc.getAllowedPhones(), defaults.getAllowedPhones());
        List<String> allowedPhones = (phones == null) ? emptyList() : Arrays.asList(phones);
        return new TestSenderClient(senderClient, allowedPhones, smppResultGenerator);
    }
/**
     * Creates {@link TestSenderClient} with base client {@code senderClient}, {@link SmppResultGenerator}
     * {@code smppResultGenerator} and list of allowed phones from {@code smsc} or {@code defaults}
     *
     * @param senderClient        base sender client
     * @param defaults            default smpp properties
     * @param smsc                smpp properties
     * @param smppResultGenerator result generator for not allowed phones
     * @return test sender client
     */
Creates  TestSenderClient with base client  senderClient,  SmppResultGenerator
smppResultGenerator and list of allowed phones from  smsc or  defaults


Creates TestSenderClient with base client senderClient SmppResultGenerator smppResultGenerator and list of allowed phones from smsc or defaults
public SenderClient testSender(@NotNull SenderClient senderClient, @NotNull SmppProperties.Defaults defaults,
                                   @NotNull SmppProperties.SMSC smsc,
                                   @NotNull SmppResultGenerator smppResultGenerator) {
        requireNonNull(senderClient);
        requireNonNull(defaults);
        requireNonNull(smppResultGenerator);
        requireNonNull(smsc);
        String[] phones = getOrDefault(smsc.getAllowedPhones(), defaults.getAllowedPhones());
        List<String> allowedPhones = (phones == null) ? emptyList() : Arrays.asList(phones);
        return new TestSenderClient(senderClient, allowedPhones, smppResultGenerator);
    }
public SenderClient testSender ( @ NotNull SenderClient senderClient , @ NotNull SmppProperties . Defaults defaults , @ NotNull SmppProperties . SMSC smsc , @ NotNull SmppResultGenerator smppResultGenerator ) { requireNonNull ( senderClient ) ; requireNonNull ( defaults ) ; requireNonNull ( smppResultGenerator ) ; requireNonNull ( smsc ) ; String [ ] phones = getOrDefault ( smsc . getAllowedPhones ( ) , defaults . getAllowedPhones ( ) ) ; List < String > allowedPhones = ( phones == null ) ? emptyList ( ) : Arrays . asList ( phones ) ; return new TestSenderClient ( senderClient , allowedPhones , smppResultGenerator ) ; }
Creates {@link TestSenderClient} with base client {@code senderClient}, {@link SmppResultGenerator}
 {@code smppResultGenerator} and list of allowed phones from {@code smsc} or {@code defaults}
Creates { @link TestSenderClient } with base client { @code senderClient } { @link SmppResultGenerator } { @code smppResultGenerator } and list of allowed phones from { @code smsc } or { @code defaults }