### Question:
RosettaMapperFactory implements ResultSetMapperFactory { @Override public boolean accepts(@SuppressWarnings("rawtypes") Class type, StatementContext ctx) { return !(type.isPrimitive() || type.isArray() || type.isAnnotation() || BuiltInArgumentFactory.canAccept(type)); }  @Override boolean accepts(@SuppressWarnings("rawtypes") Class type, StatementContext ctx); @Override @SuppressWarnings({ "rawtypes", "unchecked" }) ResultSetMapper mapperFor(Class rawType, StatementContext ctx);  }### Answer:
@Test public void itRejectsInteger() { assertThat(mapperFactory.accepts(Integer.class, null)).isFalse(); }
@Test public void itRejectsInt() { assertThat(mapperFactory.accepts(Integer.TYPE, null)).isFalse(); }
@Test public void itAcceptsRosettaCreatorConstructorBean() { assertThat(mapperFactory.accepts(RosettaCreatorConstructorBean.class, null)).isTrue(); }
@Test public void itAcceptsRosettaCreatorMethodBean() { assertThat(mapperFactory.accepts(RosettaCreatorMethodBean.class, null)).isTrue(); }
@Test public void itAcceptsRosettaNamingBean() { assertThat(mapperFactory.accepts(RosettaNamingBean.class, null)).isTrue(); }
@Test public void itAcceptsRosettaValueBean() { assertThat(mapperFactory.accepts(RosettaValueBean.class, null)).isTrue(); }
@Test public void itAcceptsStoredAsJsonBean() { assertThat(mapperFactory.accepts(StoredAsJsonBean.class, null)).isTrue(); }
@Test public void itAcceptsNestedBean() { assertThat(mapperFactory.accepts(NestedBean.class, null)).isTrue(); }
@Test public void itAcceptsCircularBean() { assertThat(mapperFactory.accepts(CircularBean.class, null)).isTrue(); }