@Test
public void Should_throwWhenCannotResolveSession()
        throws Exception {

    DebuggerActor actor = new DebuggerActor();
    when(sessionStrategyMock.resolve(any(), any(), any())).thenThrow(ResolveDependencyStrategyException.class);
    when(commandMessageMock.getCommand()).thenReturn("newSession");
    actor.executeCommand(commandMessageMock);
    verify(commandMessageMock).setException(any());
}