@BeforeClass
  public static void init() {

    setEncapsulationAction = new SetTaggedEthernetEncapsulationAction();
    removeEncapsulationAction = new RemoveTaggedEthernetEncapsulationAction();
    setVlanAction = new SetVlanIdAction();

    setEncapsulationAction.setModelToUpdate(new ComputerSystem());
    removeEncapsulationAction.setModelToUpdate(new ComputerSystem());
    setVlanAction.setModelToUpdate(new ComputerSystem());

    protocolManager = new ProtocolManager();
    try {
      protocolSessionManager =
          (ProtocolSessionManager) protocolManager.getProtocolSessionManager(resourceId);
      protocolSessionManager.setEventManager(new MockEventManager());
      netconfContext = newSessionContextNetconf();
      protocolManager.sessionFactoryAdded(
          new NetconfProtocolSessionFactory(),
          new HashMap<String, String>() {
            {
              put(ProtocolSessionContext.PROTOCOL, "netconf");
            }
          });
      protocolSessionManager.registerContext(netconfContext);
    } catch (ProtocolException e) {
      e.printStackTrace();
    }
  }