@Test
public void testChip() throws ChipOutOfBoundsException, ParseException, InterruptedException {

  Boundary mainImage = new Boundary(52.0, 15.0, 100, Math.toRadians(30));
  Boundary chip = new Boundary(52.0, 15.0, 10, Math.toRadians(30));
  Polygon mainPolygon = createPolygon(mainImage.getBoundary());
  Polygon chipPolygon = createPolygon(chip.getBoundary());
  BufferedImage result = chipService.chip(inputImage, mainPolygon, chipPolygon);
  assertThat(result.getWidth(), is(102));
  assertThat(result.getHeight(), is(102));
  verify(lock).acquire();
  verify(lock).release();
}