TransformationOperation extends TransformationUtility<T> { @Override protected final T setSaveResult(boolean saveResult) { throw new UnsupportedOperationException("Transformation operations must always save results"); } TransformationOperation(); @Override final PerformResult perform(File transformedAppFolder, TransformationContext transformationContext);  }
@Test(expectedExceptions = UnsupportedOperationException.class, expectedExceptionsMessageRegExp = "Transformation operations must always save results") public void saveResultTest() { TransformationOperation transformationOperation = getNewTestTransformationOperation(); assertTrue(transformationOperation.isSaveResult()); transformationOperation.setSaveResult(false); }