@Test
public void getUpdateData() throws Exception {

    AnnotationData annotationData = new AnnotationData();
    annotationData.setDataIndex(-1);
    Object entity = new Object();
    Object result = cut.getUpdateData(annotationData, null, null, entity);
    assertSame(entity, result);
    annotationData = new AnnotationData();
    annotationData.setReturnDataIndex(true);
    result = cut.getUpdateData(annotationData, null, null, entity);
    assertSame(entity, result);
    annotationData = new AnnotationData();
    annotationData.setDataIndex(1);
    Method method = UpdateData.class.getMethod("update", new Class[] { int.class, Object.class });
    result = cut.getUpdateData(annotationData, method, new Object[] { 144, entity }, entity);
    assertSame(entity, result);
}