@Test
public void testMultipleBundlesAndResources() {

    String[] bundles = {
            "com.example.extra.bundle1",
            "com.example.extra.bundle2",
    };
    String[] resources = {
            "ABCD",
            ".*\\.json",
    };
    String actual = ResourceConfigGenerator.generateResourceConfig(new CommandSpec[0], bundles, resources);
    String expected = String.format("" +
            "{%n" +
            "  \"bundles\" : [%n" +
            "    {\"name\" : \"com.example.extra.bundle1\"},%n" +
            "    {\"name\" : \"com.example.extra.bundle2\"}%n" +
            "  ],%n" +
            "  \"resources\" : [%n" +
            "    {\"pattern\" : \"ABCD\"},%n" +
            "    {\"pattern\" : \".*\\.json\"}%n" +
            "  ]%n" +
            "}%n");
    assertEquals(expected, actual);
}