@Test
public void testClearAllPermissions() {

	final ClientPermissions clientPermission = new ClientPermissions();
	Assert.assertEquals(0, clientPermission.getSecrets().size());
	final String secret1 = "test1";
	final String secret2 = "test2";
	
	clientPermission.addPermission(secret1, Permissions.GENERATE);
	Assert.assertEquals(1, clientPermission.getSecrets().size());
	
	clientPermission.addPermission(secret1, Permissions.DELETE);
	Assert.assertEquals(1, clientPermission.getSecrets().size());
	
	clientPermission.addPermission(secret2, Permissions.GENERATE);
	Assert.assertEquals(2, clientPermission.getSecrets().size());
	
	clientPermission.clearAllPermissions();
	Assert.assertEquals(0, clientPermission.getSecrets().size());
}