@Override
	public RegisteredClient getClientConfiguration(ServerConfiguration issuer) {

		RegisteredClient client = staticClientService.getClientConfiguration(issuer);
		if (client != null) {
			return client;
		} else {
			return dynamicClientService.getClientConfiguration(issuer);
		}

	}
@Test
	public void getClientConfiguration_noIssuer() {

		// The mockServerConfig is known to both services
		Mockito.when(mockStaticService.getClientConfiguration(mockServerConfig)).thenReturn(mockClient);
		Mockito.when(mockDynamicService.getClientConfiguration(mockServerConfig)).thenReturn(mockClient);

		// But oh noes! We're going to ask it to find us some other issuer
		ServerConfiguration badIssuer = Mockito.mock(ServerConfiguration.class);
		Mockito.when(badIssuer.getIssuer()).thenReturn("www.badexample.com");

		RegisteredClient result = hybridService.getClientConfiguration(badIssuer);

		Mockito.verify(mockStaticService).getClientConfiguration(badIssuer);
		Mockito.verify(mockDynamicService).getClientConfiguration(badIssuer);
		assertThat(result, is(nullValue()));
	}