@Test
public void should_load_credentials() throws Exception {

    FileBasedUserRepository<StdUser> repo = newRepo(false);
    Files.copy(getClass().getResourceAsStream("credentials.json"), credentialsPath, StandardCopyOption.REPLACE_EXISTING);
    assertThat(repo.findCredentialByUserName("admin").isPresent()).isFalse();
    assertThat(repo.findCredentialByUserName("john")).isEqualTo(Optional.of("johnpwd"));
}