### Question:
MondrianSchemaHandler { public boolean removeFormatting( final String cube, final String dimension, final String hierarchy, final String level ) throws ModelerException { Element levelNode = getLevelNode( cube, dimension, hierarchy, level ); if ( levelNode != null ) { levelNode.removeAttribute( AnnotationConstants.LEVEL_FORMATTER_ATTRIBUTE ); NodeList annotations = levelNode.getElementsByTagName( AnnotationConstants.ANNOTATIONS_NODE_NAME ); if ( annotations != null && annotations.getLength() > 0 ) { Node item = annotations.item( 0 ); NodeList childNodes = item.getChildNodes(); for ( int i = 0; i < childNodes.getLength(); i++ ) { if ( childNodes.item( i ) instanceof Element ) { Element singleAnnotation = (Element) childNodes.item( i ); if ( AnnotationConstants.INLINE_MEMBER_FORMAT_STRING.equals( singleAnnotation.getAttribute( AnnotationConstants.ANNOTATION_NAME_ATTRIUBUTE ) ) ) { item.removeChild( singleAnnotation ); break; } } } } return true; } return false; } MondrianSchemaHandler();  MondrianSchemaHandler( Document schema ); void addMeasure( String cubeName, MondrianDef.Measure measure ); void addCalculatedMember( String cubeName, MondrianDef.CalculatedMember calculatedMember ); boolean isCalculatedMeasure( String cubeName, String measureName ); boolean updateCalculatedMeasure(
    final String cubeName, String measureName, final String caption, final String formatString ); boolean updateMeasure( String cubeName, String measureName, MondrianDef.Measure measure ); boolean updateCalculatedMember( String cubeName, String calculatedMemberName,
                                         MondrianDef.CalculatedMember updatedCalculatedMember ); boolean showHideMeasure( final String cubeName, final String measureName, final boolean visible ); boolean showHideAttribute(
    final String cubeName, final String dimensionName, final String hierarchyName, final String levelName,
    final boolean visible ); boolean captionLevel( final String cubeName, final String dimensionName, final String hierarchyName,
                               final String existingLevelName, final String captionName ); Document getSchema(); void setSchema( Document schema ); boolean formatLevel( final String cube, final String dimension, final String hierarchy, final String level,
                              final String formatString ); boolean removeFormatting( final String cube, final String dimension, final String hierarchy,
                                   final String level ); static final String XPATH_SEPARATOR; static final String SCHEMA_XPATH_EXPR; static final String CUBE_XPATH_EXPR; static final String MEASURE_ELEMENT_NAME; static final String MEASURE_NAME_ATTRIBUTE; static final String MEASURE_COLUMN_ATTRIBUTE; static final String MEASURE_AGGREGATOR_ATTRIBUTE; static final String MEASURE_DIMENSION; static final String DIMENSION; static final String MEASURE_FORMAT_STRING_ATTRIBUTE; static final String CALCULATED_MEMBER_FORMAT_STRING_ATTRIBUTE; }### Answer:
@Test public void testRemovingFormattingForALevelThatDoesnotExistReturnsFalse() throws Exception { Document schemaDocument = AnnotationUtil.getMondrianDoc( "src/test/resources/updateattribute.mondrian.xml" ); MondrianSchemaHandler mondrianSchemaHandler = new MondrianSchemaHandler( schemaDocument ); Assert.assertFalse( mondrianSchemaHandler.removeFormatting( "Sales", "Time", "Time", "Does Not Exist" ) ); }