@SuppressWarnings("unchecked")
@Test
public void testLogEvent() {

    // Arrange
    HashMap<String, Object> eventValue = new HashMap<>();
    eventValue.put(EVENT_CATEGORY, "testCategory");
    eventValue.put(EVENT_ACTION, "testAction");
    eventValue.put(EVENT_LABEL, "testLabel");
    ArgumentCaptor<HashMap> event = ArgumentCaptor.forClass(HashMap.class);
    // Act
    this.subject.logEvent(eventValue);
    // Assert
    verify(this.tracker).send(event.capture());
    eventValue = event.getValue();
    assertTrue(eventValue.containsValue("testCategory"));
    assertTrue(eventValue.containsValue("testLabel"));
    assertTrue(eventValue.containsValue("testAction"));
}