@Test(expected = InvalidUserDataException.class)
public void testCreateDependencyWithInvalidDescriptionShouldThrowInvalidUserDataEx() {
final IDependencyImplementationFactory testImplStringFactoryStub = context.mock(IDependencyImplementationFactory.class, "String");
context.checking(new Expectations() {{
allowing(testImplPointFactoryStub).createDependency(with(equalTo(Dependency.class)), with(not(instanceOf(Point.class))));
will(throwException(new IllegalDependencyNotation()));
allowing(testImplStringFactoryStub).createDependency(with(equalTo(Dependency.class)), with(not(instanceOf(String.class))));
will(throwException(new IllegalDependencyNotation()));
}});
dependencyFactory.createDependency(createAnonymousInteger());
}