### Question:
Triangle { boolean isEquilateral() { throw new UnsupportedOperationException("Delete this statement and write your own implementation."); } Triangle(double side1, double side2, double side3);   }### Answer:
@Test public void equilateralTrianglesHaveEqualSides() throws TriangleException { Triangle triangle = new Triangle(2, 2, 2); assertTrue(triangle.isEquilateral()); }
@Ignore("Remove to run test") @Test public void trianglesWithOneUnequalSideAreNotEquilateral() throws TriangleException { Triangle triangle = new Triangle(2, 3, 2); assertFalse(triangle.isEquilateral()); }
@Ignore("Remove to run test") @Test public void trianglesWithNoEqualSidesAreNotEquilateral() throws TriangleException { Triangle triangle = new Triangle(5, 4, 6); assertFalse(triangle.isEquilateral()); }
@Ignore("Remove to run test") @Test public void verySmallTrianglesCanBeEquilateral() throws TriangleException { Triangle triangle = new Triangle(0.5, 0.5, 0.5); assertTrue(triangle.isEquilateral()); }