1 package com.atlassian.asap.core.keys.privatekey;
2
3 import com.atlassian.asap.api.exception.CannotRetrieveKeyException;
4 import com.atlassian.asap.core.validator.ValidatedKeyId;
5 import org.junit.Test;
6
7 public class NullKeyProviderTest {
8 @Test(expected = CannotRetrieveKeyException.class)
9 public void shouldAlwaysFail() throws Exception {
10 new NullKeyProvider().getKey(ValidatedKeyId.validate("anything"));
11 }
12 }