@Test public void testNoPolicyError() { Exception actualException = null; try { AppProfile.fromProto(TEST_PROTO.toBuilder().clearSingleClusterRouting().build()); } catch (Exception e) { actualException = e; } assertThat(actualException).isInstanceOf(IllegalArgumentException.class); } }