### Question:
TextWrapperProvider { public static ITextWrapper get(final TextWrapperStrategy strategy, final Text text) { switch (strategy) { case BOUNDS_AND_LINE_BREAKS: return new TextBoundsAndLineBreaksWrap(text); case LINE_BREAK: return new TextLineBreakWrap(text); case NO_WRAP: return new TextNoWrap(text); case TRUNCATE: return new TextLineBreakTruncateWrapper(text, new BoundingBox()); case TRUNCATE_WITH_LINE_BREAK: return new TextLineBreakTruncateWrapper(text, new BoundingBox()); default: return new TextBoundsWrap(text); } }  static ITextWrapper get(final TextWrapperStrategy strategy,
                                   final Text text);  }### Answer:
@Test public void testBoundsAndLineBreaks() { final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.BOUNDS_AND_LINE_BREAKS, text); assertTrue(wrapper instanceof TextBoundsAndLineBreaksWrap); }
@Test public void testLineBreak() { final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.LINE_BREAK, text); assertTrue(wrapper instanceof TextLineBreakWrap); }
@Test public void testNoWrap() { final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.NO_WRAP, text); assertTrue(wrapper instanceof TextNoWrap); }
@Test public void testTruncate() { final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.TRUNCATE, text); assertTrue(wrapper instanceof TextTruncateWrapper); }
@Test public void testBounds() { final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.BOUNDS, text); assertTrue(wrapper instanceof TextBoundsWrap); }
@Test public void testTruncateWithLineBreak() { final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.TRUNCATE_WITH_LINE_BREAK, text); assertTrue(wrapper instanceof TextLineBreakTruncateWrapper); }