@Test
        public void resolveDifferentCombinationOfConfigs() throws Exception {
            String userAgent = RuntimeHttpUtils.getUserAgent(null, null, testData.credentials, testData.request);
            if (StringUtils.isNullOrEmpty(testData.expectedUserAgentSubstring)) {
                assertFalse(userAgent.contains("cfg/auth-source"));
                assertFalse(userAgent.contains("m/"));
            } else {
                assertTrue(userAgent.contains(testData.expectedUserAgentSubstring));
            }
        }
Unit tests for {@link RuntimeHttpUtils#getUserAgent(ClientConfiguration, String, AWSCredentials, HandlerContextAware)} .
aws-java-sdk-core/src/test/java/com/amazonaws/util/RuntimeHttpUtilsTest.java