@Test
public void whenLoadContextWithDependenciesShouldGetBeans(){

    ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
    UserStorage storage = context.getBean(UserStorage.class);
    storage.add(new User());
    assertNotNull(storage);
}