String expected = "Free Connections: 42";
String template = "Free Connections: ${pools[0].numconnfree}";
List<ConnectionPool> pools = new ArrayList<>();
pools.add(new ConnectionPool("anything", 42, 24, 1, 1));
Snapshot snapshot = new Snapshot.Builder().pools(pools).build();
String result = instance.processBasicMessage(template, snapshot);
assertEquals(expected, result);
}