  Though the method-of-moments implementation of the electric-field integral
equation plays an important role in computational electromagnetics, it provides
many code-verification challenges due to the different sources of numerical
error. In this paper, we provide an approach through which we can apply the
method of manufactured solutions to isolate and verify the solution
discretization error. We accomplish this by manufacturing both the surface
current and the Green's function. Because the arising equations are poorly
conditioned, we reformulate them as a set of constraints for an optimization
problem that selects the solution closest to the manufactured solution. We
demonstrate the effectiveness of this approach for cases with and without
coding errors.
