### Question:
DocbookUtils { public static String doxiaTableFrameAttribute( final String frame ) { String fr = frame; if ( "all".equals( fr ) ) { fr = "box"; } else if ( "bottom".equals( fr ) ) { fr = "below"; } else if ( "none".equals( fr ) ) { fr = "void"; } else if ( "sides".equals( fr ) ) { fr = "vsides"; } else if ( "top".equals( fr ) ) { fr = "above"; } else if ( "topbot".equals( fr ) ) { fr = "hsides"; } else { throw new IllegalArgumentException( "Not a valid frame attribute: " + fr ); } return fr; } private  DocbookUtils(); static String doxiaTableFrameAttribute( final String frame ); static int doxiaListNumbering( final String style ); static String docbookListNumbering( final int numbering ); static char trademarkFromClass( final String trade );  }### Answer:
@Test public void testDoxiaTableFrameAttribute() { assertEquals( "box", DocbookUtils.doxiaTableFrameAttribute( "all" ) ); assertEquals( "below", DocbookUtils.doxiaTableFrameAttribute( "bottom" ) ); assertEquals( "void", DocbookUtils.doxiaTableFrameAttribute( "none" ) ); assertEquals( "vsides", DocbookUtils.doxiaTableFrameAttribute( "sides" ) ); assertEquals( "above", DocbookUtils.doxiaTableFrameAttribute( "top" ) ); assertEquals( "hsides", DocbookUtils.doxiaTableFrameAttribute( "topbot" ) ); try { DocbookUtils.doxiaTableFrameAttribute( "" ); fail(); } catch ( IllegalArgumentException e ) { assertNotNull( e ); } }