### Question:
MagnetConnection extends DiscreteConnection { @Override public Point2D getLocation() { return location; } private  MagnetConnection(final @MapsTo("location") Point2D location,
                             final @MapsTo("auto") Boolean auto); private  MagnetConnection(int index); MagnetConnection setLocation(final Point2D location); MagnetConnection setAuto(final boolean auto); @Override Point2D getLocation(); boolean isAuto(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final int MAGNET_CENTER; static final int MAGNET_TOP; static final int MAGNET_RIGHT; static final int MAGNET_BOTTOM; static final int MAGNET_LEFT; }### Answer:
@Test public void testForLocation() { MagnetConnection m1 = MagnetConnection.Builder.at(123, 321); assertEquals(123, m1.getLocation().getX(), 0); assertEquals(321, m1.getLocation().getY(), 0); }