### Question:
StyleHelper { public static boolean containsStyle(final String styleNames, final String style) { if (styleNames == null || style == null) { return false; } final String[] styles = styleNames.split("\\s"); for (final String s : styles) { if (style.equals(s)) { return true; } } return false; } private  StyleHelper(); static void addUniqueEnumStyleName(final UIObject uiObject,
                                                                                                                       final Class<F> enumClass,
                                                                                                                       final E style); static void removeEnumStyleNames(final UIObject uiObject,
                                                                                         final Class<E> enumClass); static void addEnumStyleName(final UIObject uiObject,
                                                                     final E style); static void removeEnumStyleName(final UIObject uiObject,
                                                                        final E style); static boolean containsStyle(final String styleNames,
                                        final String style); static void toggleStyleName(final UIObject uiObject,
                                       final boolean toggleStyle,
                                       final String styleName); static void setHiddenOn(final UIObject uiObject,
                                   final DeviceSize deviceSize); static void setVisibleOn(final UIObject uiObject,
                                    final DeviceSize deviceSize);  }### Answer:
@Test public void testContainsStyle() { final String styleNames = "abc-efg 123 hji-klm"; assertThat(containsStyle(styleNames, "abc-efg"), is(true)); assertThat(containsStyle(styleNames, "123"), is(true)); assertThat(containsStyle(styleNames, "hji-klm"), is(true)); assertThat(containsStyle(styleNames, "mno"), is(false)); assertThat(containsStyle(null, "hji-klm"), is(false)); assertThat(containsStyle(styleNames, null), is(false)); assertThat(containsStyle("abc", "abc"), is(true)); }