### Question:
OSMWay extends OSMEntity implements Comparable<OSMWay>, Serializable { public OSMMember[] getRefs() { return refs; } OSMWay(final long id, final int version, final OSHDBTimestamp timestamp, final long changeset,
      final int userId, final int[] tags, final OSMMember[] refs); @Override OSMType getType(); OSMMember[] getRefs(); Stream<OSMNode> getRefEntities(OSHDBTimestamp timestamp); @Override String toString(); @Override int compareTo(OSMWay o);  }### Answer:
@Test public void testGetRefs() { OSMMember part = new OSMMember(1L, OSMType.NODE, 1); OSMWay instance = new OSMWay(1L, 1, new OSHDBTimestamp(1L), 1L, 1, new int[] {}, new OSMMember[] {part, part}); OSMMember[] expResult = new OSMMember[] {part, part}; OSMMember[] result = instance.getRefs(); assertArrayEquals(expResult, result); instance = new OSMWay(1L, 1, new OSHDBTimestamp(1L), 1L, 1, new int[] {}, new OSMMember[] {}); expResult = new OSMMember[] {}; result = instance.getRefs(); assertArrayEquals(expResult, result); instance = new OSMWay(1L, 1, new OSHDBTimestamp(1L), 1L, 1, new int[] {}, null); expResult = null; result = instance.getRefs(); assertArrayEquals(expResult, result); }