@Test
public void shouldReturnBasePackagesArrayWhenInitParamHasLeadingAndTrailingSpaces() throws ServletException {

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