public class DeviceHashCodeBuilderTest {
protected static final Device create() {
final String name = "device name";
final int id = 1;
final Category category = Category.PERSONAL_COMPUTER;
final String icon = "icon";
final String infoUrl = "info url";
final SortedSet<DevicePattern> patterns = new TreeSet<DevicePattern>();
patterns.add(new DevicePattern(1, Pattern.compile("[0-9]"), 1));
patterns.add(new DevicePattern(2, Pattern.compile("[a-z]"), 2));