I have the following methods inside a class

```
@Bean(name = "boggle")
    public BoggleImpl createBoggleClient() {
        BoggleBuilder builder = new BoggleBuilder()
                            .setRegistryId(getRegistryId())
                            .setRegistryPassword(getPassword())

        return new BoggleFeatureImpl(builder.build());
    }

```

and am using the bean inside a class such as

```

class A {
    private final Boggle boggle;

    @PreDestroy
    public void destroy() {
        if (boggle != null) {
            boggle.closeConnection();
        }
    }

}

```

Now my code coverage in unit tests show these methods as not covered. Not sure what can i do to cover these methods. Any pointers on the same.