### Question:
MondrianSchemaHandler { public boolean showHideMeasure( final String cubeName, final String measureName, final boolean visible ) throws ModelerException { Element measureNode = (Element) getMeasureNode( cubeName, measureName ); if ( measureNode == null ) { measureNode = getCalculatedMeasureNode( cubeName, measureName ); } if ( measureNode != null ) { showHideElement( measureNode, visible ); return true; } else { 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 testShowHideMeasure() throws ModelerException { MondrianSchemaHandler mondrianSchemaHandler = new MondrianSchemaHandler( schemaDocument ); boolean result = mondrianSchemaHandler.showHideMeasure( TEST_CUBE_NAME, TEST_EXISTING_MEASURE_STRING, Boolean.FALSE ); Assert.assertTrue( result ); }
@Test public void testShowHideMeasureNullMeasure() throws ModelerException { MondrianSchemaHandler mondrianSchemaHandler = new MondrianSchemaHandler( schemaDocument ); boolean result = mondrianSchemaHandler.showHideMeasure( TEST_CUBE_NAME, null, Boolean.FALSE ); Assert.assertFalse( result ); }
@Test public void testShowHideMeasureFormattedMeasure() throws ModelerException { MondrianSchemaHandler mondrianSchemaHandler = new MondrianSchemaHandler( schemaDocument ); boolean result = mondrianSchemaHandler.showHideMeasure( TEST_CUBE_NAME, TEST_EXISTING_MEASURE_DIMENSION_STRING, Boolean.FALSE ); Assert.assertTrue( result ); }