Handle assertion more elegantly and use Iterables.getLast() for CDN Container name.