@Before
 public void setup() {
   when(repository.createRule(anyString())).thenReturn(newRule);
 }