RequestParameterTenantIdentificationStrategy implements TenantIdentificationStrategy { @Override public String getTenant(HttpServletRequest request) { return ServletRequestUtils.getStringParameter(request, this.parameter, null); }  @Override String getTenant(HttpServletRequest request); void setParameter(String parameter);  }
@Test public void whenRequestParameterNotFoundThenNullShouldBeReturned() { String context = this.strategy.getTenant(this.request); assertThat(context, is(nullValue())); }