urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testNormalizeTagsWhiteSpaceTrimmedToValid() {
        String trimmedTag = "whitespace_test_tag";

        HashSet<String> tags = new HashSet<>();
        tags.add("    whitespace_test_tag    ");

        pushManager.setTags(tags);
        assertEquals(pushManager.getTags().iterator().next(), trimmedTag);
    }
/**
     * Tests trimming of tag's white space.
     */
Tests trimming of tag's white space.
Tests trimming of tag ' s white space .
@Test
    public void testNormalizeTagsWhiteSpaceTrimmedToValid() {
        String trimmedTag = "whitespace_test_tag";
        HashSet<String> tags = new HashSet<>();
        tags.add("    whitespace_test_tag    ");
        pushManager.setTags(tags);
        assertEquals(pushManager.getTags().iterator().next(), trimmedTag);
    }
@ Test public void testNormalizeTagsWhiteSpaceTrimmedToValid ( ) { String trimmedTag = "whitespace_test_tag" ; HashSet < String > tags = new HashSet < > ( ) ; tags . add ( "    whitespace_test_tag    " ) ; pushManager . setTags ( tags ) ; assertEquals ( pushManager . getTags ( ) . iterator ( ) . next ( ) , trimmedTag ) ; }
Tests trimming of tag's white space.
Tests trimming of tag ' s white space .