@Test
public void testIfHasBasePackages() {

when(context.getInitParameter(BasicConfiguration.BASE_PACKAGES_PARAMETER_NAME)).thenReturn(null, "foo.bar");

	assertThat(config.hasBasePackages(), is(false));
	assertThat(config.hasBasePackages(), is(true));
}