LdapFilter { boolean isSerialNumberSearch() { return serialNumberSearch; } LdapFilter(String query);   }
@Test public void shouldBeSerialNumberSearchWhenNumericalQuery() { assertThat(new LdapFilter(SERIAL_NUMBER_QUERY).isSerialNumberSearch(), is(true)); }
@Test public void shouldNotBeSerialNumberSearchWhenNotNumericalQuery() { assertThat(new LdapFilter(CN_QUERY).isSerialNumberSearch(), is(false)); }