@PrepareForTest(NullAclEntryCache.class)
public class AcegiSecurityUserTest {
@Test
public void testMockSigned() throws Exception {
NullAclEntryCache cacheMock = createMock(NullAclEntryCache.class);
AcegiSecurityUser tested = new AcegiSecurityUser(cacheMock);
final BasicAclEntry[] basicAclEntries = new BasicAclEntry[0];
expect(cacheMock.getEntriesFromCache(null)).andReturn(basicAclEntries);
replay(cacheMock);
assertSame(basicAclEntries, tested.getDecisionVoters());