/**
* Test method for {@link eu.bitwalker.useragentutils.OperatingSystem#valueOf(String)}
*/
@Test
public void testValueOfString() {
OperatingSystem operatingSystem = OperatingSystem.parseUserAgentString(symbian9phones[0]);
assertEquals(OperatingSystem.valueOf(operatingSystem.toString()), operatingSystem);
try
{
operatingSystem = OperatingSystem.valueOf("illegal");
fail("Should have thrown IllegalArgumentException");
}