@Test
public void testChangeListener() {

    final MockUtils.MockRouteOptionsBuilder builder = new MockUtils.MockRouteOptionsBuilder();
    RouteOptions options = builder.withTunnelOptions().build();
    mTunnelOptionsPanel.setRouteOptions(options);
    mTunnelOptionsPanel.setListener(new OptionsPanel.Listener() {
        @Override
        public void onOptionCreated(List<OptionItem> item) {
            mCallbackCalled = false;
        }
        @Override
        public void onOptionChanged(OptionItem item) {
            mCallbackCalled = true;
        }
    });
    // negate one part
    options = builder.withNoTunnelOptions().build();
    mTunnelOptionsPanel.setRouteOptions(options);
    assertThat(mCallbackCalled, is(true));
}