### Question:
TargetRefAccessType { public TargetRefType getTargetRefType() { return targetRefType; } private  TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write); TargetRefType getTargetRefType(); boolean hasRead(); boolean hasWrite(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final TargetRefAccessType CAMERA_READ; static final TargetRefAccessType CAMERA_READ_WRITE; static final TargetRefAccessType CAMERA_WRITE; static final TargetRefAccessType IMAGE_READ; static final TargetRefAccessType IMAGE_READ_WRITE; static final TargetRefAccessType IMAGE_WRITE; static final TargetRefAccessType EVF_IMAGE_READ; static final Set<TargetRefAccessType> GROUP_NONE; static final Set<TargetRefAccessType> GROUP_CAMERA_READ; static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE; static final Set<TargetRefAccessType> GROUP_IMAGE_READ; static final Set<TargetRefAccessType> GROUP_IMAGE_READ_WRITE; static final Set<TargetRefAccessType> GROUP_IMAGE_WRITE; static final Set<TargetRefAccessType> GROUP_EVF_IMAGE_READ; static final Set<TargetRefAccessType> GROUP_CAMERA_READ_IMAGE_READ; static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ; static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE; static final Set<TargetRefAccessType> GROUP_CAMERA_WRITE_EVF_IMAGE_READ; }### Answer:
@Test void getTargetRefType() { Assertions.assertEquals(TargetRefType.CAMERA, CAMERA_READ.getTargetRefType()); Assertions.assertEquals(TargetRefType.CAMERA, CAMERA_WRITE.getTargetRefType()); Assertions.assertEquals(TargetRefType.CAMERA, CAMERA_READ_WRITE.getTargetRefType()); Assertions.assertEquals(TargetRefType.IMAGE, IMAGE_READ.getTargetRefType()); Assertions.assertEquals(TargetRefType.IMAGE, IMAGE_WRITE.getTargetRefType()); Assertions.assertEquals(TargetRefType.IMAGE, IMAGE_READ_WRITE.getTargetRefType()); Assertions.assertEquals(TargetRefType.EVF_IMAGE, EVF_IMAGE_READ.getTargetRefType()); }