    @Test
    public void shouldListUniqueUsersMatchingTheSearchTermAcrossMultiplePasswordFiles() throws Exception {

        final GoPluginApiRequest request = mock(GoPluginApiRequest.class);

        mockPasswordFileWith("/var/etc/password_1.properties", "myname");
        mockPasswordFileWith("/var/etc/password_2.properties", "yournamed", "bar", "myname");
        mockPasswordFileWith("/var/etc/password_3.properties", "nameless", "foo");

        when(request.requestBody()).thenReturn(requestJsonWithMultipleAuthConfig("name"));

        final GoPluginApiResponse response = new SearchUserExecutor(request, fileReader).execute();

        assertThat(response.responseCode(), is(200));

        final String expectedResponseBody = "[\n" +
                "  {\n" +
                "    \"username\": \"myname\"\n" +
                "  },\n" +
                "  {\n" +
                "    \"username\": \"yournamed\"\n" +
                "  },\n" +
                "  {\n" +
                "    \"username\": \"nameless\"\n" +
                "  }\n" +
                "]";

        JSONAssert.assertEquals(expectedResponseBody, response.responseBody(), true);
    }