title: Guice properties injection
body: <p>I have my project structure like below:</p>
  
  <p><a href="https://i.stack.imgur.com/r54zc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r54zc.png" alt="enter image description here"></a></p>
  
  <p>Where my Test1.java is like this:</p>
  
  <pre><code>package TestNG;
  
  import org.testng.annotations.Test;
  import com.google.inject.Inject;
  import com.google.inject.name.Named;
  
  public class Test1 {
  
  @Inject
  @Named("semi-auto.firstname")
  String firstname;
  
  @Test
  public void test() {
      System.out.println(firstname);
  }
  
  }
  </code></pre>
  
  <p>and my semi-auto.properties is</p>
  
  <pre><code>semi-auto.firstname=John
  semi-auto.lastname=Doe
  </code></pre>
  
  <p>What I want to do is to just use 'firstname' parameter value in Test1 using Guice.
  The test passes but the value passed is null.
  Can't I do that this way?
  Please help</p>