### Question:
BapiField { public Class<?> getAssociatedType() { if (field.getType().isArray()) { return getArrayType(); } if (Collection.class.isAssignableFrom(field.getType())) { return getGenericType(); } return getType(); } BapiField(final Field field); Class<?> getArrayType(); Class<?> getAssociatedType(); Class<? extends Converter<?, ?>> getConverter(); Class<?> getGenericType(); String getName(); String getSapName(); Class<?> getType(); boolean isExport(); boolean isChanging(); boolean isImport(); boolean isParameter(); boolean isStructure(); boolean isTableStructure(); boolean isTable();  }### Answer:
@Test public void getsActualType() throws NoSuchFieldException { BapiField field = new BapiField(getClass().getDeclaredField("listGeneric")); assertEquals(String.class, field.getAssociatedType()); field = new BapiField(getClass().getDeclaredField("integerArray")); assertEquals(Integer.class, field.getAssociatedType()); field = new BapiField(getClass().getDeclaredField("intPrimitive")); assertEquals(int.class, field.getAssociatedType()); }