### Question:
AbstractLayeredBoard implements ClientBoard { public boolean isOutOfField(int x, int y) { return pt(x, y).isOutOf(size); }  ClientBoard forString(String boardString); ClientBoard forString(String... layers); abstract E valueOf(char ch); int size(); static Set<Point> removeDuplicates(Collection<Point> all); @Override String toString(); boolean isOutOfField(int x, int y); List<String> getLayersString(); void setSource(JSONObject source);  }### Answer:
@Test public void shouldWork_isOutOfField() { assertEquals(true, board.isOutOfField(-1, 1)); assertEquals(true, board.isOutOfField(1, -1)); assertEquals(true, board.isOutOfField(4, 1)); assertEquals(true, board.isOutOfField(1, 4)); assertEquals(false, board.isOutOfField(0, 1)); assertEquals(false, board.isOutOfField(1, 0)); assertEquals(false, board.isOutOfField(3, 1)); assertEquals(false, board.isOutOfField(1, 3)); }