urbanairship-core/src/test/java/com/urbanairship/analytics/AnalyticsTest.java
@Test
    public void testEditAssociatedIdentifiers() {
        analytics.editAssociatedIdentifiers()
                 .addIdentifier("customKey", "customValue")
                 .apply();

        // Verify we started created an add event job
        verify(mockEventManager).addEvent(Mockito.any(AssociateIdentifiersEvent.class), Mockito.anyString());

        // Verify identifiers are stored
        AssociatedIdentifiers storedIds = analytics.getAssociatedIdentifiers();
        assertEquals(storedIds.getIds().get("customKey"), "customValue");
        assertEquals(storedIds.getIds().size(), 1);
    }
/**
     * Test editAssociatedIdentifiers  dispatches a job to add a new associate_identifiers event.
     */
Test editAssociatedIdentifiers  dispatches a job to add a new associate_identifiers event.
Test editAssociatedIdentifiers dispatches a job to add a new associate_identifiers event .
@Test
    public void testEditAssociatedIdentifiers() {
        analytics.editAssociatedIdentifiers()
                 .addIdentifier("customKey", "customValue")
                 .apply();
        verify(mockEventManager).addEvent(Mockito.any(AssociateIdentifiersEvent.class), Mockito.anyString());
        AssociatedIdentifiers storedIds = analytics.getAssociatedIdentifiers();
        assertEquals(storedIds.getIds().get("customKey"), "customValue");
        assertEquals(storedIds.getIds().size(), 1);
    }
@ Test public void testEditAssociatedIdentifiers ( ) { analytics . editAssociatedIdentifiers ( ) . addIdentifier ( "customKey" , "customValue" ) . apply ( ) ; verify ( mockEventManager ) . addEvent ( Mockito . any ( AssociateIdentifiersEvent . class ) , Mockito . anyString ( ) ) ; AssociatedIdentifiers storedIds = analytics . getAssociatedIdentifiers ( ) ; assertEquals ( storedIds . getIds ( ) . get ( "customKey" ) , "customValue" ) ; assertEquals ( storedIds . getIds ( ) . size ( ) , 1 ) ; }
Test editAssociatedIdentifiers  dispatches a job to add a new associate_identifiers event.
Test editAssociatedIdentifiers dispatches a job to add a new associate_identifiers event .
// Verify we started created an add event job // Verify identifiers are stored