### Question:
WebElementConditions extends AbstractObjectConditions<FluentWebElement> implements FluentConditions { @Override public boolean className(String className) { FluentWebElement element = getActualObject(); String classAttribute = element.attribute("class"); if (classAttribute == null) { return false; } String[] classes = classAttribute.split(" "); return Arrays.asList(classes).contains(className); } WebElementConditions(FluentWebElement element);  WebElementConditions(FluentWebElement element, boolean negation); @Override @Negation WebElementConditions not(); @Override boolean present(); @Override boolean clickable(); @Override boolean stale(); @Override boolean displayed(); @Override boolean enabled(); @Override boolean selected(); @Override StringConditions attribute(String name); @Override StringConditions id(); @Override StringConditions name(); @Override StringConditions tagName(); @Override StringConditions value(); @Override StringConditions text(); @Override StringConditions textContent(); @Override RectangleConditions rectangle(); @Override boolean className(String className);  }### Answer:
@Test public void className() { assertThat(conditions.className("some-class-2")).isFalse(); when(webElement.getAttribute("class")).thenReturn("some-class-1 some-class-2 some-class-3"); assertThat(conditions.className("some-class-1")).isTrue(); assertThat(conditions.className("some-class-2")).isTrue(); assertThat(conditions.className("some-class-3")).isTrue(); assertThat(conditions.className("some-class-4")).isFalse(); }