### Question:
ActionFlowConfigBuilder { Field findField(Class<?> clazz, final String fieldName) { Field field = null; if (clazz != null && fieldName != null) { do { try { field = clazz.getDeclaredField(fieldName); } catch (NoSuchFieldException nsfe) { if (LOG.isTraceEnabled()) { LOG.trace("In findField", nsfe); } } clazz = clazz.getSuperclass(); } while (clazz != ActionSupport.class && clazz != Object.class && clazz != null && field == null); } return field; }   static final Logger LOG; }### Answer:
@Test public void testFindField() throws Exception { Assert.assertNotNull(actionFlowConfigBuilder); Assert.assertNotNull(actionFlowConfigBuilder.findField(LevelOne.class, "name")); Assert.assertNotNull(actionFlowConfigBuilder.findField(LevelTwo.class, "name")); Assert.assertNotNull(actionFlowConfigBuilder.findField(Simple.class, "name")); Assert.assertNull(actionFlowConfigBuilder.findField(LevelTwo.class, "notExistingField")); Assert.assertNull(actionFlowConfigBuilder.findField(Simple.class, "notExistingField")); Assert.assertNull(actionFlowConfigBuilder.findField(int.class, "notExistingField")); Assert.assertNull(actionFlowConfigBuilder.findField(Simple.class, null)); Assert.assertNull(actionFlowConfigBuilder.findField(null, "name")); Assert.assertNull(actionFlowConfigBuilder.findField(null, null)); }