Sampling-Based Accuracy Testing of Posterior Estimators for General Inference