@Test
public void shouldReturnBasePackagesArrayWhenInitParamNotNullAndHasComas() throws ServletException {

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