### Question:
MemberTypeAdditions { public FieldMetadata getInvokedField() { if (classOrInterfaceDetailsBuilder == null) { return null; } final List<FieldMetadataBuilder> declaredFields = classOrInterfaceDetailsBuilder.getDeclaredFields(); switch (declaredFields.size()) { case 0: return null; case 1: return declaredFields.get(0).build(); default: throw new IllegalStateException("Multiple fields introduced for " + this); } } MemberTypeAdditions(final ClassOrInterfaceTypeDetailsBuilder builder,
      final String methodName, final String methodCall, final boolean isStatic,
      final List<MethodParameter> methodParameters); static MemberTypeAdditions getInstance(final ClassOrInterfaceTypeDetailsBuilder builder,
      final String targetName, final String methodName, final boolean isStatic,
      final List<MethodParameter> parameters); static MemberTypeAdditions getInstance(final ClassOrInterfaceTypeDetailsBuilder builder,
      final String targetName, final String methodName, final boolean isStatic,
      final MethodParameter... parameters); void copyAdditionsTo(final AbstractMemberHoldingTypeDetailsBuilder<?> targetBuilder,
      final ClassOrInterfaceTypeDetails governorClassOrInterfaceTypeDetails); FieldMetadata getInvokedField(); String getMethodCall(); String getMethodName(); List<MethodParameter> getMethodParameters(); boolean isStatic(); @Override String toString();  }### Answer:
@Test public void testGetInvokedFieldWhenBuilderIsNull() { final MemberTypeAdditions memberTypeAdditions = new MemberTypeAdditions(null, "foo", "foo()", false, null); assertNull(memberTypeAdditions.getInvokedField()); }