@Test public void genericErasureWorkaround() {
SubjectFactory<StringSubject, String> factory =
new SubjectFactory<StringSubject, String>() {
@Override public StringSubject getSubject(FailureStrategy fs, String target) {
return new StringSubject(fs, target);
}
};
assertThat(factory.getSubjectClass()).is(StringSubject.class);
}