}
@Test
public void parse_browser_mobile_CHROME() throws Exception {
final String userAgent = "Mozilla/5.0 (Linux; U; Android-4.0.3; en-us; Galaxy Nexus Build/IML74K) AppleWebKit/535.7 (KHTML, like Gecko) CrMo/16.0.912.75 Mobile Safari/535.7";
final UserAgent agent = PARSER.parse(userAgent);
assertThat(agent).isNotNull();
// check user agent informations
assertThat(agent.getFamily()).isEqualTo(UserAgentFamily.CHROME_MOBILE);
assertThat(agent.getIcon()).isEqualTo("chrome.png");
assertThat(agent.getName()).isEqualTo("Chrome Mobile");
assertThat(agent.getProducer()).isEqualTo("Google Inc.");
assertThat(agent.getProducerUrl()).isEqualTo("http://www.google.com/");
assertThat(agent.getType()).isEqualTo(UserAgentType.MOBILE_BROWSER);
assertThat(agent.getTypeName()).isEqualTo("Mobile Browser");
assertThat(agent.getUrl()).isEqualTo("http://www.google.com/intl/en/chrome/browser/mobile/");
assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("16.0.912.75");
// check operating system informations
final OperatingSystem os = agent.getOperatingSystem();
assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.ANDROID);
assertThat(os.getFamilyName()).isEqualTo("Android");
assertThat(os.getIcon()).isEqualTo("android.png");
assertThat(os.getName()).isEqualTo("Android 4.0.x Ice Cream Sandwich");
assertThat(os.getProducer()).isEqualTo("Google, Inc.");
assertThat(os.getProducerUrl()).isEqualTo("http://www.google.com/");
assertThat(os.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Android_%28operating_system%29");
assertThat(os.getVersionNumber().toVersionString()).isEqualTo("4.0.3");
// check device category informations
final DeviceCategory category = agent.getDeviceCategory();
assertThat(category.getCategory()).isEqualTo(Category.TABLET);
assertThat(category.getName()).isEqualTo(Category.TABLET.getName());
assertThat(category.getIcon()).isEqualTo("tablet.png");
assertThat(category.getInfoUrl()).isEqualTo("/list-of-ua/device-detail?device=Tablet");
}