got rid of get/set for sentence generator in servlet. Didn't make any sense. Used mockito @InjectMocks to overcome the test part