EntityResultBean { String getKey() { if (contentInputBean != null) { return contentInputBean.getKey(); } return null; } EntityResultBean(ContentInputBean contentInputBean);   }
@Test public void testGetEntityLogInputBean() throws Exception { ContentInputBean contentInputBean = new ContentInputBean("", "auditKey", new DateTime(), null); EntityResultBean entityResultBean = new EntityResultBean(contentInputBean); Assert.assertEquals(entityResultBean.getKey(), "auditKey"); }