@Test
public void testHasBoth() {

    when(params.getDefaultTransition()).thenReturn(mockTransition);
    when(params.getTransitions()).thenReturn(Collections.singletonMap(Integer.MAX_VALUE, mockTransition));
    assertTrue(victim.isValid(params, null));
}