### Question:
ApproximateAngle implements PioSerializable { public ParamSet getParamSet(PioFactory factory, String name) { ParamSet params = factory.createParamSet(name); Pio.addIntParam(factory, params, PROP_ANGLE, angle); Pio.addIntParam(factory, params, PROP_VARIANCE, variance); return params; } 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 testPio() { PioFactory fact = new PioXmlFactory(); ApproximateAngle a = new ApproximateAngle(180, 25); ParamSet set = a.getParamSet(fact, "test"); ApproximateAngle b = new ApproximateAngle(set); assertEquals(a, b); }