@Test
public void shouldReturnBasePackagesWhenInitParamNotNull() throws ServletException {

when(context.getInitParameter(BasicConfiguration.BASE_PACKAGES_PARAMETER_NAME)).thenReturn("some.packages");
assertThat(config.getBasePackages(), is(new String[] {"some.packages"}));
}