### Question:
PrivateFraction { public static double getShiftedValue(int a, int b){ if (b == 0) { throw new IllegalArgumentException(); } return getValue(a,b); }  static double getShiftedValue(int a, int b);  }### Answer:
@Test public void getShiftedValue() { double value = PrivateFraction.getShiftedValue(6,1); assertEquals(3, value, 0.0001); }
@Test (expected = IllegalArgumentException.class) public void getShiftedValue_zero() { double value = PrivateFraction.getShiftedValue(6,0); }
@Test (expected = ArithmeticException.class) public void getShiftedValue_crash() { double value = PrivateFraction.getShiftedValue(6,-1); }