java.lang.String should be in the set of bean types instead of Foo for this Bean to make sense.