Numerical simulations of measurements of capillary contact angles