### Question:
AbsoluteScaleFactor extends ScaleFactor { @Override public int apply(int currentSize, Action action) { int newSize = currentSize + (new Double(getFactor())).intValue(); if(action instanceof ScaleInAction) { newSize = currentSize - (new Double(getFactor())).intValue(); if(newSize < 1) { newSize = 1; } } return newSize; } AbsoluteScaleFactor(int factor); @Override int apply(int currentSize, Action action);  }### Answer:
@Test public void testAbsoluteFactorApplyWithScaleOut() { System.out.println("testAbsoluteFactorApply"); AbsoluteScaleFactor factor; factor = new AbsoluteScaleFactor(10); assertEquals("New scaling size is incorrect", 11, factor.apply(1, new ScaleOutAction())); assertEquals("New scaling size is incorrect", 20, factor.apply(10, new ScaleOutAction())); assertEquals("New scaling size is incorrect", 15, factor.apply(5, new ScaleOutAction())); }