@Test public void testHasProfile() throws Exception { givenRegisteredAccount("name"); assertThat( "Cache should contain profile with key: 'name'", cacheUnderTest.hasProfile(fakeProfile)); }