@Test
public void copyTo_withOperatingSystem() {
final SortedSet<OperatingSystemPattern> patternSet = new TreeSet<OperatingSystemPattern>();
final OperatingSystem os = new OperatingSystem(1, "n1", "f1", "iu1", patternSet, "p1", "pu1", "u1", "i1");
final Browser b = new Blueprint().operatingSystem(os).build();
final Builder builder = new UserAgent.Builder();
b.copyTo(builder);
assertThat(builder.getFamily()).isEqualTo(b.getFamily());
assertThat(builder.getProducer()).isEqualTo(b.getProducer());
assertThat(builder.getProducerUrl()).isEqualTo(b.getProducerUrl());
assertThat(builder.getTypeName()).isEqualTo(b.getType().getName());
assertThat(builder.getUrl()).isEqualTo(b.getUrl());
assertThat(builder.getOperatingSystem()).isNotNull();
}