LogEvent(string, map) and requested unit test

@dkorolev PTAL
Please keep this cast, but at least rename it into something indicative of Java vs. Android Java differences.