func (s *EndpointSuite) TestImplementedBy(c *C) {
	for i, t := range implementedByTests {
		c.Logf("test %d", i)
		ep := state.Endpoint{"x", t.ifce, t.name, t.role, t.scope}
		c.Assert(ep.ImplementedBy(&dummyCharm{}), Equals, t.match)
		c.Assert(ep.IsImplicit(), Equals, t.implicit)
	}
}
func (s *EndpointSuite) TestImplementedBy(c *C) {
	for i, t := range implementedByTests {
		c.Logf("test %d", i)
		ep := state.Endpoint{
			ServiceName: "x",
			Relation: charm.Relation{
				Interface: t.ifce,
				Name:      t.name,
				Role:      t.role,
				Scope:     t.scope,
			},
		}
		c.Assert(ep.ImplementedBy(&dummyCharm{}), Equals, t.match)
		c.Assert(ep.IsImplicit(), Equals, t.implicit)
	}
}