void parseArgAndAppend(String entityName, String fieldName, Object arg) {
    if (entityName == null || fieldName == null || arg == null) {
      return;
    }

    if (arg instanceof Collection) {
      for (Object o : (Collection<?>) arg) {
        String matchedValue = String.valueOf(o);
        api.appendDataInfluence(entityName, ApolloAuditConstants.ANY_MATCHED_ID, fieldName, matchedValue);
      }
    } else {
      String matchedValue = String.valueOf(arg);
      api.appendDataInfluence(entityName, ApolloAuditConstants.ANY_MATCHED_ID, fieldName, matchedValue);
    }
  }
@Test
  public void testParseArgAndAppendCaseCollectionTypeArg() {
    final String entityName = "App";
    final String fieldName = "Name";
    List<Object> list = Arrays.asList(new Object(), new Object(), new Object());

    {
      doNothing().when(api).appendDataInfluence(any(), any(), any(), any());
    }
    aspect.parseArgAndAppend(entityName, fieldName, list);
    verify(api, times(list.size())).appendDataInfluence(eq(entityName),
        eq(ApolloAuditConstants.ANY_MATCHED_ID), eq(fieldName), any());
  }