### Question:
TokenListProvider implements UserRightsBuilder.TokenProvider { @Override public List<String> getTokens() { return tokens; } TokenListProvider(List<String> tokens); @Override List<String> getTokens();  }### Answer:
@Test public void should_return_the_list_of_provided_token_without_null() throws Exception { TokenListProvider provider = new TokenListProvider(Arrays.asList( "token 1", null, "token 2")); assertThat(provider.getTokens()).containsExactly("token 1", "token 2"); }