updated junit to 4.11
added generating factory from constructor binding