### Question:
GrpclbLoadBalancerFactory extends LoadBalancer.Factory { public static GrpclbLoadBalancerFactory getInstance() { if (instance == null) { instance = new GrpclbLoadBalancerFactory(); } return instance; } private  GrpclbLoadBalancerFactory(); static GrpclbLoadBalancerFactory getInstance(); @Override LoadBalancer newLoadBalancer(LoadBalancer.Helper helper);  }### Answer:
@SuppressWarnings("deprecation") @Test public void getInstance() { Helper helper = mock(Helper.class); when(helper.getSynchronizationContext()).thenReturn(syncContext); when(helper.getScheduledExecutorService()).thenReturn(clock.getScheduledExecutorService()); when(helper.getAuthority()).thenReturn("fakeauthority"); when(helper.getChannelLogger()).thenReturn(mock(ChannelLogger.class)); assertThat(GrpclbLoadBalancerFactory.getInstance().newLoadBalancer(helper)) .isInstanceOf(io.grpc.grpclb.GrpclbLoadBalancer.class); verify(helper).getSynchronizationContext(); verify(helper).getScheduledExecutorService(); verify(helper).getAuthority(); verify(helper).getChannelLogger(); verifyNoMoreInteractions(helper); }