### Question:
Alterable { public int increase(double extrp, int increase) { final int current = getCurrent(); final double increased = current + increase * extrp; set(increased); if (increased > max) { return max - current; } return increase; } Alterable(int max);  Alterable(int max, boolean overMax); int increase(double extrp, int increase); int increase(int increase); int decrease(double extrp, int decrease); int decrease(int decrease); void fill(); void reset(); void set(int value); void setMax(int max); int getMax(); int getCurrent(); int getPercent(); int getNeeded(int value); boolean isFull(); boolean isEmpty(); boolean isEnough(int value); static final int MIN; }### Answer:
@Test void testIncrease() { final Alterable alterable = new Alterable(3); alterable.increase(1); assertEquals(1, alterable.getCurrent()); alterable.increase(2.0, 1); assertEquals(3, alterable.getCurrent()); alterable.increase(1); assertEquals(3, alterable.getCurrent()); }