}
@Test
public void parse_browser_SAFARI() throws Exception {
final String userAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3";
final UserAgent agent = PARSER.parse(userAgent);
assertThat(agent).isNotNull();
// check user agent informations
assertThat(agent.getFamily()).isEqualTo(UserAgentFamily.SAFARI);
assertThat(agent.getIcon()).isEqualTo("safari.png");
assertThat(agent.getName()).isEqualTo("Safari");
assertThat(agent.getProducer()).isEqualTo("Apple Inc.");
assertThat(agent.getProducerUrl()).isEqualTo("http://www.apple.com/");
assertThat(agent.getType()).isEqualTo(UserAgentType.BROWSER);
assertThat(agent.getTypeName()).isEqualTo("Browser");
assertThat(agent.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Safari_%28web_browser%29");
assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("5.1.5");
// check operating system informations
final OperatingSystem os = agent.getOperatingSystem();
assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.OS_X);
assertThat(os.getFamilyName()).isEqualTo("OS X");
assertThat(os.getIcon()).isEqualTo("macosx.png");
assertThat(os.getName()).isEqualTo("OS X 10.7 Lion");
assertThat(os.getProducer()).isEqualTo("Apple Computer, Inc.");
assertThat(os.getProducerUrl()).isEqualTo("http://www.apple.com/");
assertThat(os.getUrl()).isEqualTo("http://www.apple.com/osx/");
assertThat(os.getVersionNumber().toVersionString()).isEqualTo("10.7.3");
// check device category informations
final DeviceCategory category = agent.getDeviceCategory();
assertThat(category.getCategory()).isEqualTo(Category.PERSONAL_COMPUTER);
assertThat(category.getName()).isEqualTo(Category.PERSONAL_COMPUTER.getName());
assertThat(category.getIcon()).isEqualTo("desktop.png");
assertThat(category.getInfoUrl()).isEqualTo("/list-of-ua/device-detail?device=Personal computer");
}