RectangularBoxAdapter { public final RectangularBox getRectangularBox() { return rectangularBox; } RectangularBoxAdapter(String input); final RectangularBox getRectangularBox();  }
@Test public void testPositive() { assertThat(new RectangularBoxAdapter("[2:3][10:20]").getRectangularBox(), is(RectangularBox.newInstance(2, 3, 10, 20))); }
@Test(expected = ConversionException.class) public void missingPoint() { assertThat(new RectangularBoxAdapter("[2:3][10:]").getRectangularBox(), is(RectangularBox.newInstance(2, 3, 10, 20))); }
@Test(expected = ConversionException.class) public void missingPointAgain() { assertThat(new RectangularBoxAdapter("[2:3][10]").getRectangularBox(), is(RectangularBox.newInstance(2, 3, 10, 20))); }