@Before
  public void setUpMocks() {
    wrapperMock = WrapperMock.createInstance();
    cacheMock = wrapperMock.getPlayerCache();
    commandService = mock(CommandService.class);

    when(commandService.getProperty(SecuritySettings.MIN_PASSWORD_LENGTH)).thenReturn(2);
    when(commandService.getProperty(SecuritySettings.MAX_PASSWORD_LENGTH)).thenReturn(50);
    // Only allow passwords with alphanumerical characters for the test
    when(commandService.getProperty(RestrictionSettings.ALLOWED_PASSWORD_REGEX))
        .thenReturn("[a-zA-Z0-9]+");
    when(commandService.getProperty(SecuritySettings.UNSAFE_PASSWORDS))
        .thenReturn(Collections.EMPTY_LIST);
  }