### Question:
OriginalStatesAccessor { public void set(E entity, E states) { if (entity == null) { throw new DomaNullPointerException("entity"); } try { FieldUtil.set(field, entity, states); } catch (WrapException wrapException) { throw new OriginalStatesAccessException( wrapException.getCause(), entityClass.getName(), name); } } OriginalStatesAccessor(Class<? super E> entityClass, String name); @SuppressWarnings("unchecked") E get(E entity); void set(E entity, E states);  }### Answer:
@Test public void testSet() { Hoge states = new Hoge(); Hoge hoge = new Hoge(); OriginalStatesAccessor<Hoge> accessor = new OriginalStatesAccessor<>(Hoge.class, "originalStates"); accessor.set(hoge, states); assertSame(states, hoge.getOriginalStates()); }