public static String generate(String command, CommandType type) {
        return generate(Lists.newArrayList(command), type);
    }
@Test
    public void oneRequestTest() throws IOException {
        InputStream streamOrig = getClass().getResourceAsStream(REQ_FILE1);
        ObjectMapper om = new ObjectMapper();
        JsonNode node1 = om.readTree(streamOrig);

        ArrayList<String> cmds = new ArrayList<>();
        cmds.add("show interface");

        JsonNode node2 = om.readTree(NxApiRequest.generate(cmds, NxApiRequest.CommandType.CLI));

        assertEquals(node1.toString(), node2.toString());
    }