testEqualsHashCode(1, "top", Collections.<String>emptyList(), Arrays.asList("hi"));
testEqualsHashCode(0, null, null, null);
}
private void testEqualsHashCode(int port, String location, List<String> featureURLs, List<String> features) {
InstanceSettings is = new InstanceSettings(port, location, featureURLs, features);
InstanceSettings is2 = new InstanceSettings(port, location, featureURLs, features);
assertEquals(is, is2);
assertEquals(is.hashCode(), is2.hashCode());
}