@Test
public void testEither() {

  assertTrue(left("a").isLeft());
  assertTrue(right("a").isRight());
  Either<String, Integer> a = left("error");
  assertEquals("error", a.left().value());
  Either<String, Integer> b = right(1);
  assertEquals(new Integer(1), b.right().value());
}