### Question:
CloseToZero { public int close_to_zero(int n) { if (n == 0) { n++; } else if (n > 0) { n--; } else { n++; } return n; }  int close_to_zero(int n);  }### Answer:
@Test public void test01() { assertEquals(9, new CloseToZero().close_to_zero(10)); }
@Test public void test02() { assertEquals(99, new CloseToZero().close_to_zero(100)); }
@Test public void test03() { assertEquals(0, new CloseToZero().close_to_zero(0)); }
@Test public void test04() { assertEquals(-9, new CloseToZero().close_to_zero(-10)); }