General dielectric boundary conditions for electrostatic problem in inversion transformation are described. It is shown that solution to electrostatic problem of two dielectric spheres with cloesd form cannot be reached by using inversion. Multiply-multipole method is applied to the problem and accurate results are obtained. The numerical results confirm the addition theorems for spherical harmonics.