@Test
public void reconfigure() {

	encryptorService.configure("1234");
	InOrder order = inOrder(encryptorProviderService, settingsService);
	order.verify(encryptorProviderService).setEncryptor(any(Encryptor.class));
	order.verify(settingsService).update(any());
	assertTrue(settings.get().getEncryptorSettings().validateMasterPassword("1234"));
	encryptorService.reconfigure("5678");
	order = inOrder(encryptorProviderService, settingsService, encryptorListener);
	order.verify(encryptorListener).aboutToChangeEncryptor();
	order.verify(encryptorProviderService).setEncryptor(any(Encryptor.class));
	order.verify(settingsService).update(any());
	order.verify(encryptorListener).encryptorChanged();
	assertTrue(settings.get().getEncryptorSettings().validateMasterPassword("5678"));
}