### Question:
ApproximateAngle implements PioSerializable { @Override public int hashCode() { return angle ^ variance; } ApproximateAngle(int angle, int variance);  ApproximateAngle(ParamSet paramSet); ParamSet getParamSet(PioFactory factory, String name); int getAngle(); int getVariance(); boolean contains(int angle); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void testHashcode() { final int angle = 350; final int range = 50; ApproximateAngle a = new ApproximateAngle(angle, range); ApproximateAngle b = new ApproximateAngle(angle + 360, range); assertEquals(a.hashCode(), b.hashCode()); assertTrue(a.hashCode() == b.hashCode()); }