### Question:
PromptSupport { public static void setFocusBehavior(FocusBehavior focusBehavior, JTextComponent textComponent) { textComponent.putClientProperty(FOCUS_BEHAVIOR, focusBehavior); if (textComponent.isFocusOwner()) { textComponent.repaint(); } } private  PromptSupport(); static void init(String promptText, Color promptForeground, Color promptBackground,
			final JTextComponent textComponent); static FocusBehavior getFocusBehavior(JTextComponent textComponent); static void setFocusBehavior(FocusBehavior focusBehavior, JTextComponent textComponent); static String getPrompt(JTextComponent textComponent); static void setPrompt(String promptText, JTextComponent textComponent); static Color getForeground(JTextComponent textComponent); static void setForeground(Color promptTextColor, JTextComponent textComponent); static Color getBackground(JTextComponent textComponent); static void setBackground(Color background, JTextComponent textComponent); @SuppressWarnings("unchecked") static Painter<? super T> getBackgroundPainter(T textComponent); static void setBackgroundPainter(Painter<? super T> background, T textComponent); static void setFontStyle(Integer fontStyle, JTextComponent textComponent); static Integer getFontStyle(JTextComponent textComponent); static final String PROMPT; static final String FOREGROUND; static final String BACKGROUND; static final String BACKGROUND_PAINTER; static final String FOCUS_BEHAVIOR; static final String FONT_STYLE; }### Answer:
@Test public void testSetFocusBehavior() throws Exception { PromptSupport.setFocusBehavior(FocusBehavior.HIGHLIGHT_PROMPT, txt); assertEquals(FocusBehavior.HIGHLIGHT_PROMPT, PromptSupport.getFocusBehavior(txt)); assertEquals(FocusBehavior.HIGHLIGHT_PROMPT, txt.getClientProperty(PromptSupport.FOCUS_BEHAVIOR)); }