789101112131415
import com.nilhcem.fakesmtp.server.SMTPServerHandler; public class SMTPServerHandlerTest { @Test public void uniqueInstance() { SMTPServerHandler a = SMTPServerHandler.INSTANCE; SMTPServerHandler b = SMTPServerHandler.INSTANCE; assertSame(a, b); }