### Question:
Beta extends AbstractObservable implements Distribution { @Override public boolean equals(Object o){ if(o instanceof Beta) { Beta other = (Beta) o; return (other.d_alpha == d_alpha) && (other.d_beta == d_beta); } return false; } Beta(double alpha, double beta); AxisType getAxisType(); double getAlpha(); double getBeta(); double getQuantile(double p); @Override boolean equals(Object o); @Override double getCumulativeProbability(double x);  }### Answer:
@Test public void testEquals() { assertFalse(new Beta(1, 1).equals(null)); assertEquals(new Beta(1, 1), new Beta(1, 1)); assertFalse(new Beta(1, 1).equals("Beta")); assertFalse(new Beta(1, 1).equals(new Beta(2, 1))); assertFalse(new Beta(1, 1).equals(new Beta(1, 2))); }