@Test
public void parsesUserAgentAndCreatesPropertiesForChrome() throws Exception {

    BrowserAndOperatingSystemAnalyticsProperties props = setup("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36");
    ImmutableMap<String, Object> actual = ImmutableMap.copyOf(props.properties(new Analytics.TrackRequest("bob", null)));
    Assert.assertEquals(6, actual.size());
    Assert.assertEquals("41", actual.get("browserVersionMajor"));
    Assert.assertEquals("10", actual.get("osVersionMinor"));
    Assert.assertEquals("Mac OS X", actual.get("osFamily"));
    Assert.assertEquals("Chrome", actual.get("browserFamily"));
    Assert.assertEquals("0", actual.get("browserVersionMinor"));
    Assert.assertEquals("10", actual.get("osVersionMajor"));
}