### Question:
PortRanges { public static PortRange fromInteger(int x) { return new SinglePort(x); }  static PortRange fromInteger(int x); static PortRange fromIterable(Iterable<?> c); static PortRange fromString(String s); @SuppressWarnings("rawtypes") static void init(); static final int MAX_PORT; static final PortRange ANY_HIGH_PORT; }### Answer:
@Test public void testSingleRange() { PortRange r = PortRanges.fromInteger(1234); assertContents(r, 1234); }