@Test
public void getToken_notFound(
        @Mocked final InstanceIdentity identity, @Mocked final PriamInstance instance) {

    final String token = "";
    new Expectations() {
        {
            priamServer.getInstanceIdentity();
            result = identity;
            identity.getInstance();
            result = instance;
            instance.getToken();
            result = token;
        }
    };
    Response response = resource.getToken();
    assertEquals(500, response.getStatus());
}